From 9f595d2f345f285e79220e47853eccfdd0126260 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Tue, 19 Sep 2017 15:19:53 -0300 Subject: [PATCH] User avatar in DM list --- packages/rocketchat-ui-sidenav/client/chatRoomItem.js | 3 ++- packages/rocketchat-ui-sidenav/client/sidebarItem.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/rocketchat-ui-sidenav/client/chatRoomItem.js b/packages/rocketchat-ui-sidenav/client/chatRoomItem.js index 877f4290e8af..8cf4df405cdc 100644 --- a/packages/rocketchat-ui-sidenav/client/chatRoomItem.js +++ b/packages/rocketchat-ui-sidenav/client/chatRoomItem.js @@ -1,6 +1,6 @@ Template.chatRoomItem.helpers({ roomData() { - let name = this.name; + let {name} = this; const realNameForDirectMessages = RocketChat.settings.get('UI_Use_Real_Name') && this.t === 'd'; const realNameForChannel = RocketChat.settings.get('UI_Allow_room_names_with_special_chars') && this.t !== 'd'; if ((realNameForDirectMessages || realNameForChannel) && this.fname) { @@ -31,6 +31,7 @@ Template.chatRoomItem.helpers({ ...this, icon, avatar, + username : this.name, route: RocketChat.roomTypes.getRouteLink(this.t, this), name, unread, diff --git a/packages/rocketchat-ui-sidenav/client/sidebarItem.html b/packages/rocketchat-ui-sidenav/client/sidebarItem.html index 4d62bdaec76a..ae562f081e0e 100644 --- a/packages/rocketchat-ui-sidenav/client/sidebarItem.html +++ b/packages/rocketchat-ui-sidenav/client/sidebarItem.html @@ -10,7 +10,7 @@ {{else}} {{#if avatar}} {{/if}} {{/if}}