primitivus (chat): don't send notification for move messages
This commit is contained in:
parent
73a8db4e64
commit
2368e68c37
1 changed files with 5 additions and 0 deletions
|
|
@ -437,6 +437,11 @@ class Chat(PrimitivusWidget, quick_chat.QuickChat):
|
|||
self.mess_walker.append(wid)
|
||||
self.mess_widgets.focus_position = len(self.mess_walker) - 1 # scroll down
|
||||
self.host.redraw() # FIXME: should not be necessary
|
||||
if self._user_moved(message):
|
||||
return # no notification for moved messages
|
||||
|
||||
# notifications
|
||||
|
||||
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