Mercurial > libervia-backend
diff frontends/src/primitivus/chat.py @ 2018:7199e6bdb94e
quick_frontend, primitivus (chat): fixed widget bad locking + don't send notification when locked
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 24 Jul 2016 17:59:24 +0200 |
parents | 20fb71b656e3 |
children | f67da1cab6d3 |
line wrap: on
line diff
--- a/frontends/src/primitivus/chat.py Sun Jul 24 17:56:18 2016 +0200 +++ b/frontends/src/primitivus/chat.py Sun Jul 24 17:59:24 2016 +0200 @@ -442,6 +442,11 @@ # notifications + if self._locked: + # we don't want notifications when locked + # because that's history messages + return + if wid.mess_data.mention: from_jid = wid.mess_data.from_jid msg = _(u'You have been mentioned by {nick} in {room}'.format(