quick frontend (app): fixed notifications ids
This commit is contained in:
parent
0fbde67f2a
commit
e1e00f4d86
1 changed files with 3 additions and 11 deletions
|
|
@ -897,17 +897,8 @@ class QuickApp(object):
|
||||||
profiles=(profile,)):
|
profiles=(profile,)):
|
||||||
widget.onChatState(from_jid, state, profile)
|
widget.onChatState(from_jid, state, profile)
|
||||||
|
|
||||||
def notify(
|
def notify(self, type_, entity=None, message=None, subject=None, callback=None,
|
||||||
self,
|
cb_args=None, widget=None, profile=C.PROF_KEY_NONE):
|
||||||
type_,
|
|
||||||
entity=None,
|
|
||||||
message=None,
|
|
||||||
subject=None,
|
|
||||||
callback=None,
|
|
||||||
cb_args=None,
|
|
||||||
widget=None,
|
|
||||||
profile=C.PROF_KEY_NONE,
|
|
||||||
):
|
|
||||||
"""Trigger an event notification
|
"""Trigger an event notification
|
||||||
|
|
||||||
@param type_(unicode): notifation kind,
|
@param type_(unicode): notifation kind,
|
||||||
|
|
@ -937,6 +928,7 @@ class QuickApp(object):
|
||||||
notif_data[widget] = widget
|
notif_data[widget] = widget
|
||||||
type_notifs.append(notif_data)
|
type_notifs.append(notif_data)
|
||||||
self._notifications[self._notif_id] = notif_data
|
self._notifications[self._notif_id] = notif_data
|
||||||
|
self._notif_id += 1
|
||||||
self.callListeners("notification", entity, notif_data, profile=profile)
|
self.callListeners("notification", entity, notif_data, profile=profile)
|
||||||
|
|
||||||
def getNotifs(self, entity=None, type_=None, exact_jid=None, profile=C.PROF_KEY_NONE):
|
def getNotifs(self, entity=None, type_=None, exact_jid=None, profile=C.PROF_KEY_NONE):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue