Throttle typing events, fix profile logging, fix group typing

This commit is contained in:
Scott Nonnenberg 2018-12-10 10:21:40 -08:00
parent a8fbd085e2
commit 3851bf351f
4 changed files with 14 additions and 11 deletions

View file

@ -1,4 +1,4 @@
/* global textsecure, WebAPI, libsignal, OutgoingMessage, window */
/* global _, textsecure, WebAPI, libsignal, OutgoingMessage, window */
/* eslint-disable more/no-then, no-bitwise */
@ -533,7 +533,7 @@ MessageSender.prototype = {
}
const recipients = groupId
? await textsecure.storage.groups.getNumbers(groupId)
? _.without(await textsecure.storage.groups.getNumbers(groupId), myNumber)
: [recipientId];
const groupIdBuffer = groupId
? window.Signal.Crypto.fromEncodedBinaryToArrayBuffer(groupId)