quick_frontend, primitivus (chat): fixed widget bad locking + don't send notification when locked

This commit is contained in:
Goffi 2016-07-24 17:59:24 +02:00
commit 9f853cd774

View file

@ -442,6 +442,11 @@ class Chat(PrimitivusWidget, quick_chat.QuickChat):
# 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(