Take <gone> chat state into consideration.
This commit is contained in:
parent
7cf8dc6bee
commit
5bc1286a64
@ -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 @@
|
|||||||
$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
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user