Added utility function containsBingWord and hook up some css to it.

This commit is contained in:
Kegan Dougal 2014-09-16 15:31:18 +01:00
parent a402e0c5e6
commit b36a0c71d1
3 changed files with 46 additions and 31 deletions

View file

@ -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>