From 17d3882a8a0d4b50a7548593589926a9079e7228 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Tue, 8 Oct 2013 08:14:23 -0700 Subject: [PATCH] Use type=groupchat for chat states in muc --- clientapp/pages/groupchat.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clientapp/pages/groupchat.js b/clientapp/pages/groupchat.js index 4ff9ed2..03c486e 100644 --- a/clientapp/pages/groupchat.js +++ b/clientapp/pages/groupchat.js @@ -28,6 +28,7 @@ module.exports = BasePage.extend({ show: function (animation) { BasePage.prototype.show.apply(this, [animation]); client.sendMessage({ + type: 'groupchat', to: this.model.jid, chatState: 'active' }); @@ -35,6 +36,7 @@ module.exports = BasePage.extend({ hide: function () { BasePage.prototype.hide.apply(this); client.sendMessage({ + type: 'groupchat', to: this.model.jid, chatState: 'inactive' }); @@ -69,6 +71,7 @@ module.exports = BasePage.extend({ if (!this.typing) { this.typing = true; client.sendMessage({ + type: 'groupchat', to: this.model.jid, chatState: 'composing' }); @@ -81,6 +84,7 @@ module.exports = BasePage.extend({ if (this.typing && this.$chatInput.val().length === 0) { this.typing = false; client.sendMessage({ + type: 'groupchat', to: this.model.jid, chatState: 'active' }); @@ -113,6 +117,7 @@ module.exports = BasePage.extend({ if (this.typing) { this.typing = false; client.sendMessage({ + type: 'groupchat', to: this.model.jid, chatState: 'paused' });