quick_frontend, primitivus (chat): fixed widget bad locking + don't send notification when locked
This commit is contained in:
parent
9456417949
commit
9f853cd774
1 changed files with 6 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue