Skip to content

Commit 82079c8

Browse files
committed
fix
1 parent e7efd36 commit 82079c8

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

services/static-webserver/client/source/class/osparc/auth/Data.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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
});

services/static-webserver/client/source/class/osparc/conversation/AddMessage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

services/static-webserver/client/source/class/osparc/store/Groups.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)