quick frontends, primitivus: messageState signal handling
This commit is contained in:
parent
3f5a26f273
commit
2d468f9e94
1 changed files with 38 additions and 0 deletions
|
|
@ -254,6 +254,7 @@ class QuickApp(object):
|
|||
self.registerSignal("mucRoomUserChangedNick", iface="plugin")
|
||||
self.registerSignal("mucRoomNewSubject", iface="plugin")
|
||||
self.registerSignal("chatStateReceived", iface="plugin")
|
||||
self.registerSignal("messageState", iface="plugin")
|
||||
self.registerSignal("psEvent", iface="plugin")
|
||||
|
||||
# FIXME: do it dynamically
|
||||
|
|
@ -491,6 +492,10 @@ class QuickApp(object):
|
|||
|
||||
chat_widget.messageNew(uid, timestamp, from_jid, target, msg, subject, type_, extra, profile)
|
||||
|
||||
def messageStateHandler(self, uid, status, profile):
|
||||
for widget in self.widgets.getWidgets(quick_chat.QuickChat, profiles=(profile,)):
|
||||
widget.onMessageState(uid, status, profile)
|
||||
|
||||
def messageSend(self, to_jid, message, subject=None, mess_type="auto", extra=None, callback=None, errback=None, profile_key=C.PROF_KEY_NONE):
|
||||
if subject is None:
|
||||
subject = {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue