primitivus (chat): don't send notification for move messages

This commit is contained in:
Goffi 2016-07-17 17:59:14 +02:00
commit 2368e68c37

View file

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