Take <gone> chat state into consideration.

This commit is contained in:
JC Brand 2014-09-22 16:35:36 +02:00
parent 7cf8dc6bee
commit 5bc1286a64

View File

@ -186,6 +186,7 @@
var ACTIVE = 'active';
var COMPOSING = 'composing';
var PAUSED = 'paused';
var GONE = 'gone';
var HAS_CSPRNG = ((typeof crypto !== 'undefined') &&
((typeof crypto.randomBytes === 'function') ||
@ -2797,7 +2798,8 @@
$msg.find(ACTIVE).length !== 0 ||
$msg.find(COMPOSING).length !== 0 ||
$msg.find(INACTIVE).length !== 0 ||
$msg.find(PAUSED).length !== 0
$msg.find(PAUSED).length !== 0 ||
$msg.find(GONE).length !== 0
)
);
},