primitivus: prevent a notification flood when displaying the history
This commit is contained in:
parent
261d5296d4
commit
e72f7d728c
1 changed files with 5 additions and 1 deletions
|
|
@ -300,7 +300,11 @@ class Chat(urwid.WidgetWrap, QuickChat):
|
|||
break
|
||||
else:
|
||||
self.content.append(new_text)
|
||||
self._notify(from_jid, msg)
|
||||
if not timestamp:
|
||||
# XXX: do not send notifications for each line of the history being displayed
|
||||
# FIXME: this must be changed in the future if the timestamp is passed with
|
||||
# all messages and not only with the messages coming from the history.
|
||||
self._notify(from_jid, msg)
|
||||
|
||||
def printInfo(self, msg, type_='normal', timestamp=""):
|
||||
"""Print general info
|
||||
|
|
|
|||
Loading…
Reference in a new issue