Mercurial > libervia-backend
changeset 2010:d2144d04065e
primitivus (chat): don't send notification for move messages
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 17 Jul 2016 17:59:14 +0200 |
parents | 90134b2e3dc4 |
children | d95a6d553bec |
files | frontends/src/primitivus/chat.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/primitivus/chat.py Sun Jul 17 17:32:46 2016 +0200 +++ b/frontends/src/primitivus/chat.py Sun Jul 17 17:59:14 2016 +0200 @@ -437,6 +437,11 @@ 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(