summary refs log tree commit diff
path: root/webclient/room/room.html
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-09-16 15:31:18 +0100
committerKegan Dougal <kegan@matrix.org>2014-09-16 15:35:23 +0100
commitb36a0c71d1da1fd23a154389c692f6644a3e7ac2 (patch)
tree0fd3d454ae37fb2d220dd05b6ec9799d8b9d1dcf /webclient/room/room.html
parentAdded bing detection logic. Persist the display name of the user in localstor... (diff)
downloadsynapse-b36a0c71d1da1fd23a154389c692f6644a3e7ac2.tar.xz
Added utility function containsBingWord and hook up some css to it.
Diffstat (limited to '')
-rw-r--r--webclient/room/room.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/room/room.html b/webclient/room/room.html
index 9d617eadd8..86ec2e51ca 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -105,7 +105,7 @@
                         
                         <span ng-show='msg.content.msgtype === "m.text"' 
                               class="message"
-                              ng-class="msg.echo_msg_state"
+                              ng-class="containsBingWord(msg.content.body) ? msg.echo_msg_state + ' messageBing' : msg.echo_msg_state"
                               ng-bind-html="((msg.content.msgtype === 'm.text') ? msg.content.body : '') | linky:'_blank'"/>
 
                         <span ng-show='msg.type === "m.call.invite" && msg.user_id == state.user_id'>Outgoing Call</span>