summary refs log tree commit diff
path: root/webclient/recents
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-05 16:45:59 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-05 16:45:59 +0200
commitdcf0a6fbfd76257fbf3193ff128505dc0965f67d (patch)
tree7ee705d485ea1200863205ce8c167e707875cc73 /webclient/recents
parentFixed empty display name (content.displayname in a room member can be null) (diff)
downloadsynapse-dcf0a6fbfd76257fbf3193ff128505dc0965f67d.tar.xz
Display ban & kick reason
Diffstat (limited to 'webclient/recents')
-rw-r--r--webclient/recents/recents.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/webclient/recents/recents.html b/webclient/recents/recents.html
index 1c059249bf..280d0632ab 100644
--- a/webclient/recents/recents.html
+++ b/webclient/recents/recents.html
@@ -34,11 +34,17 @@
                                     {{ {"join": "kicked", "ban": "unbanned"}[room.lastMsg.content.prev] }}
                                     {{ room.lastMsg.state_key | mUserDisplayName: room.room_id }}
                                 </span>
+                                <span ng-if="'join' === room.lastMsg.content.prev && room.lastMsg.content.reason">
+                                    : {{ room.lastMsg.content.reason }}
+                                </span>
                             </span>
                             <span ng-if="'invite' === room.lastMsg.content.membership || 'ban' === room.lastMsg.content.membership">
                                 {{ room.lastMsg.user_id | mUserDisplayName: room.room_id }}
                                 {{ {"invite": "invited", "ban": "banned"}[room.lastMsg.content.membership] }}
                                 {{ room.lastMsg.state_key | mUserDisplayName: room.room_id }}
+                                <span ng-if="'ban' === room.lastMsg.content.prev && room.lastMsg.content.reason">
+                                    : {{ room.lastMsg.content.reason }}
+                                </span>
                             </span>
                         </div>