Commit 5bc1286a authored by JC Brand's avatar JC Brand

Take <gone> chat state into consideration.

parent 7cf8dc6b
...@@ -186,6 +186,7 @@ ...@@ -186,6 +186,7 @@
var ACTIVE = 'active'; var ACTIVE = 'active';
var COMPOSING = 'composing'; var COMPOSING = 'composing';
var PAUSED = 'paused'; var PAUSED = 'paused';
var GONE = 'gone';
var HAS_CSPRNG = ((typeof crypto !== 'undefined') && var HAS_CSPRNG = ((typeof crypto !== 'undefined') &&
((typeof crypto.randomBytes === 'function') || ((typeof crypto.randomBytes === 'function') ||
...@@ -2797,7 +2798,8 @@ ...@@ -2797,7 +2798,8 @@
$msg.find(ACTIVE).length !== 0 || $msg.find(ACTIVE).length !== 0 ||
$msg.find(COMPOSING).length !== 0 || $msg.find(COMPOSING).length !== 0 ||
$msg.find(INACTIVE).length !== 0 || $msg.find(INACTIVE).length !== 0 ||
$msg.find(PAUSED).length !== 0 $msg.find(PAUSED).length !== 0 ||
$msg.find(GONE).length !== 0
) )
); );
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment