Merge pull request #152 from sachaaaaa/fix_friendrequest_notification_when_sessionreset

Suppress friend request notification for session reset
pull/156/head
sachaaaaa 7 years ago committed by Beaudan
commit c853239a00

@ -977,6 +977,11 @@ MessageReceiver.prototype.extend({
if (!plaintext) { if (!plaintext) {
window.log.warn('handleContentMessage: plaintext was falsey'); window.log.warn('handleContentMessage: plaintext was falsey');
return null; return null;
} else if (
plaintext instanceof ArrayBuffer &&
plaintext.byteLength === 0
) {
return null;
} }
return this.innerHandleContentMessage(envelope, plaintext); return this.innerHandleContentMessage(envelope, plaintext);
}); });

Loading…
Cancel
Save