Mercurial > libervia-backend
comparison frontends/src/primitivus/chat.py @ 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 | 8a749ec21c50 |
children | b536dd121da1 |
comparison
equal
deleted
inserted
replaced
2009:90134b2e3dc4 | 2010:d2144d04065e |
---|---|
435 else: | 435 else: |
436 wid = MessageWidget(message) | 436 wid = MessageWidget(message) |
437 self.mess_walker.append(wid) | 437 self.mess_walker.append(wid) |
438 self.mess_widgets.focus_position = len(self.mess_walker) - 1 # scroll down | 438 self.mess_widgets.focus_position = len(self.mess_walker) - 1 # scroll down |
439 self.host.redraw() # FIXME: should not be necessary | 439 self.host.redraw() # FIXME: should not be necessary |
440 if self._user_moved(message): | |
441 return # no notification for moved messages | |
442 | |
443 # notifications | |
444 | |
440 if wid.mess_data.mention: | 445 if wid.mess_data.mention: |
441 from_jid = wid.mess_data.from_jid | 446 from_jid = wid.mess_data.from_jid |
442 msg = _(u'You have been mentioned by {nick} in {room}'.format( | 447 msg = _(u'You have been mentioned by {nick} in {room}'.format( |
443 nick=wid.mess_data.nick, | 448 nick=wid.mess_data.nick, |
444 room=self.target, | 449 room=self.target, |