New Upstream Snapshot - strophejs-plugin-chatstates
Ready changes
Summary
Merged new upstream version: 0.0.1+git20180316.1.a0a7c55 (was: 0.0.1).
Resulting package
Built on 2022-11-20T14:45 (took 15m23s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-snapshots libjs-strophejs-plugin-chatstates
Lintian Result
- libjs-strophejs-plugin-chatstates_0.0.1+git20180316.1.a0a7c55-1~jan+nus1_all.deb
- strophejs-plugin-chatstates_0.0.1+git20180316.1.a0a7c55-1~jan+nus1.dsc
- strophejs-plugin-chatstates_0.0.1+git20180316.1.a0a7c55-1~jan+nus1_amd64.buildinfo
- strophejs-plugin-chatstates_0.0.1+git20180316.1.a0a7c55-1~jan+nus1_amd64.changes
Diff
diff --git a/debian/changelog b/debian/changelog
index fd69e79..004410c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+strophejs-plugin-chatstates (0.0.1+git20180316.1.a0a7c55-1) UNRELEASED; urgency=low
+
+ * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk> Sun, 20 Nov 2022 14:39:05 -0000
+
strophejs-plugin-chatstates (0.0.1-2) unstable; urgency=medium
* d/control: Add libjs-strophe dependency
diff --git a/strophe.chatstates.js b/strophe.chatstates.js
index 1f9136e..43acb71 100644
--- a/strophe.chatstates.js
+++ b/strophe.chatstates.js
@@ -34,6 +34,8 @@ Strophe.addConnectionPlugin('chatstates',
var composing = $(message).find('composing'),
paused = $(message).find('paused'),
active = $(message).find('active'),
+ inactive = $(message).find('inactive'),
+ gone = $(message).find('gone'),
jid = $(message).attr('from');
if (composing.length > 0)
@@ -51,6 +53,16 @@ Strophe.addConnectionPlugin('chatstates',
$(document).trigger('active.chatstates', jid);
}
+ if (inactive.length > 0)
+ {
+ $(document).trigger('inactive.chatstates', jid);
+ }
+
+ if (gone.length > 0)
+ {
+ $(document).trigger('gone.chatstates', jid);
+ }
+
return true;
},
@@ -69,6 +81,16 @@ Strophe.addConnectionPlugin('chatstates',
this._sendNotification(jid, type, 'paused');
},
+ sendInactive: function(jid, type)
+ {
+ this._sendNotification(jid, type, 'inactive');
+ },
+
+ sendGone: function(jid, type)
+ {
+ this._sendNotification(jid, type, 'gone');
+ },
+
_sendNotification: function(jid, type, notification)
{
if (!type) type = 'chat';
Debdiff
File lists identical (after any substitutions)
No differences were encountered in the control files