mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-26 03:18:17 +01:00
A few small bugfixes
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user