# HG changeset patch # User Goffi # Date 1553069327 -3600 # Node ID e9e33e05d1433891de0bf60d4bb3e7ff47589e94 # Parent 851c47cc4ae7a9fb7ed8fc7b4410bb5c45ae8e35 quick frontend (app): fixed notifications ids diff -r 851c47cc4ae7 -r e9e33e05d143 sat_frontends/quick_frontend/quick_app.py --- a/sat_frontends/quick_frontend/quick_app.py Wed Mar 20 09:08:47 2019 +0100 +++ b/sat_frontends/quick_frontend/quick_app.py Wed Mar 20 09:08:47 2019 +0100 @@ -897,17 +897,8 @@ profiles=(profile,)): widget.onChatState(from_jid, state, profile) - def notify( - self, - type_, - entity=None, - message=None, - subject=None, - callback=None, - cb_args=None, - widget=None, - profile=C.PROF_KEY_NONE, - ): + def notify(self, type_, entity=None, message=None, subject=None, callback=None, + cb_args=None, widget=None, profile=C.PROF_KEY_NONE): """Trigger an event notification @param type_(unicode): notifation kind, @@ -937,6 +928,7 @@ notif_data[widget] = widget type_notifs.append(notif_data) self._notifications[self._notif_id] = notif_data + self._notif_id += 1 self.callListeners("notification", entity, notif_data, profile=profile) def getNotifs(self, entity=None, type_=None, exact_jid=None, profile=C.PROF_KEY_NONE):