From 81310dff2e712cf7ddbce7c4717cd5a77170c79a Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 7 Mar 2018 17:24:57 +0100 Subject: Handle multiple chat state notifications per bare jid fixes #117 --- xmpp-vala/src/module/xep/0085_chat_state_notifications.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmpp-vala/src/module') 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 IDENTITY = new ModuleIdentity(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); } } } -- cgit v1.2.3-70-g09d2