A few small bugfixes

This commit is contained in:
Scott Nonnenberg 2021-05-27 13:47:39 -07:00 committed by GitHub
parent d4dc9b8e39
commit ee41e4f71d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 19 deletions

View file

@ -1637,7 +1637,7 @@ export default class MessageSender {
// No functions should really call this; since most group sends are now via Sender Key
async sendGroupProto(
providedIdentifiers: Array<string>,
proto: ContentClass | DataMessageClass,
proto: ContentClass,
timestamp = Date.now(),
options?: SendOptionsType
): Promise<CallbackResultType> {
@ -1660,7 +1660,7 @@ export default class MessageSender {
return new Promise((resolve, reject) => {
const silent = true;
const callback = (res: CallbackResultType) => {
res.dataMessage = proto.toArrayBuffer();
res.dataMessage = proto.dataMessage?.toArrayBuffer();
if (res.errors && res.errors.length > 0) {
reject(res);
} else {