aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2018-03-07 17:24:57 +0100
committerfiaxh <git@mx.ax.lt>2018-03-10 20:01:22 +0100
commit81310dff2e712cf7ddbce7c4717cd5a77170c79a (patch)
treea7d441a97856f3d0db192a2bebbda15a88bc87ee /xmpp-vala/src/module
parent0968da1ff76e7443c2590f4182087bb501d9c8f5 (diff)
downloaddino-81310dff2e712cf7ddbce7c4717cd5a77170c79a.tar.gz
dino-81310dff2e712cf7ddbce7c4717cd5a77170c79a.zip
Handle multiple chat state notifications per bare jid
fixes #117
Diffstat (limited to 'xmpp-vala/src/module')
-rw-r--r--xmpp-vala/src/module/xep/0085_chat_state_notifications.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmpp-vala/src/module/xep/0085_chat_state_notifications.vala b/xmpp-vala/src/module/xep/0085_chat_state_notifications.vala
index 9d23c716..e1106597 100644
--- a/xmpp-vala/src/module/xep/0085_chat_state_notifications.vala
+++ b/xmpp-vala/src/module/xep/0085_chat_state_notifications.vala
@@ -14,7 +14,7 @@ private const string[] STATES = { STATE_ACTIVE, STATE_INACTIVE, STATE_GONE, STAT
public class Module : XmppStreamModule {
public static ModuleIdentity<Module> IDENTITY = new ModuleIdentity<Module>(NS_URI, "0085_chat_state_notifications");
- public signal void chat_state_received(XmppStream stream, Jid jid, string state);
+ public signal void chat_state_received(XmppStream stream, Jid jid, string state, MessageStanza stanza);
private SendPipelineListener send_pipeline_listener = new SendPipelineListener();
@@ -49,7 +49,7 @@ public class Module : XmppStreamModule {
foreach (StanzaNode node in nodes) {
if (node.ns_uri == NS_URI &&
node.name in STATES) {
- chat_state_received(stream, message.from, node.name);
+ chat_state_received(stream, message.from, node.name, message);
}
}
}