File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed 
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,12 @@ qx.Class.define("osparc.auth.Data", {
163163      let  friendlyRole  =  role . replace ( / _ / g,  " " ) ; 
164164      friendlyRole  =  osparc . utils . Utils . firstsUp ( friendlyRole ) ; 
165165      return  friendlyRole ; 
166-     } 
166+     } , 
167+ 
168+     getAvatar : function ( size )  { 
169+       const  email  =  this . getEmail ( ) ; 
170+       const  userName  =  this . getUserName ( ) ; 
171+       return  osparc . utils . Avatar . emailToThumbnail ( email ,  userName ,  size ) ; 
172+     } , 
167173  } 
168174} ) ; 
Original file line number Diff line number Diff line change @@ -71,9 +71,9 @@ qx.Class.define("osparc.conversation.AddMessage", {
7171        } 
7272        case  "thumbnail" : { 
7373          control  =  osparc . utils . Utils . createThumbnail ( 32 ) ; 
74-           const  meGroup  =  osparc . store . Groups . getInstance ( ) . getGroupMe ( ) ; 
74+           const  authStore  =  osparc . auth . Data . getInstance ( ) ; 
7575          control . set ( { 
76-             source : meGroup . getThumbnail ( ) , 
76+             source : authStore . getAvatar ( 32 ) , 
7777            alignX : "center" , 
7878            alignY : "middle" , 
7979            marginRight : 8 , 
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ qx.Class.define("osparc.store.Groups", {
110110          groupMe . set ( { 
111111            label : myAuthData . getUserName ( ) , 
112112            description, 
113-             thumbnail : osparc . utils . Avatar . emailToThumbnail ( myAuthData . getEmail ( ) ,   myAuthData . getUserName ( ) ) , 
113+             thumbnail : myAuthData . getAvatar ( 32 ) , 
114114          } ) 
115115          return  orgs ; 
116116        } ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments