summary refs log tree commit diff
path: root/webclient/room
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/room
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/room')
-rw-r--r--webclient/room/room.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/webclient/room/room.html b/webclient/room/room.html
index 147113987e..5bd2cc92d5 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -62,13 +62,20 @@
                                 {{ members[msg.user_id].displayname || msg.user_id }}
                                 {{ {"join": "kicked", "ban": "unbanned"}[msg.content.prev] }}
                                 {{ members[msg.state_key].displayname || msg.state_key }}
+                                <span ng-if="'join' === msg.content.prev && msg.content.reason">
+                                    : {{ msg.content.reason }}
+                                </span>
                             </span>
                         </span>
                         <span ng-if="'invite' === msg.content.membership || 'ban' === msg.content.membership">
                             {{ members[msg.user_id].displayname || msg.user_id }}
                             {{ {"invite": "invited", "ban": "banned"}[msg.content.membership] }}
                             {{ members[msg.state_key].displayname || msg.state_key }}
-                        </span>
+                            <span ng-if="'ban' === msg.content.prev && msg.content.reason">
+                                : {{ msg.content.reason }}
+                            </span>
+                        </span>                        
+                        
                         <span ng-show='msg.content.msgtype === "m.emote"' ng-bind-html="'* ' + (members[msg.user_id].displayname || msg.user_id) + ' ' + msg.content.body | linky:'_blank'"/>
                         <span ng-show='msg.content.msgtype === "m.text"' 
                               ng-class="msg.echo_msg_state"