mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Note to Self
This commit is contained in:
@@ -759,6 +759,37 @@ MessageSender.prototype = {
|
||||
});
|
||||
},
|
||||
|
||||
async getMessageProto(
|
||||
number,
|
||||
body,
|
||||
attachments,
|
||||
quote,
|
||||
preview,
|
||||
timestamp,
|
||||
expireTimer,
|
||||
profileKey
|
||||
) {
|
||||
const attributes = {
|
||||
recipients: [number],
|
||||
body,
|
||||
timestamp,
|
||||
attachments,
|
||||
quote,
|
||||
preview,
|
||||
expireTimer,
|
||||
profileKey,
|
||||
};
|
||||
|
||||
const message = new Message(attributes);
|
||||
await Promise.all([
|
||||
this.uploadAttachments(message),
|
||||
this.uploadThumbnails(message),
|
||||
this.uploadLinkPreviews(message),
|
||||
]);
|
||||
|
||||
return message.toArrayBuffer();
|
||||
},
|
||||
|
||||
sendMessageToNumber(
|
||||
number,
|
||||
messageText,
|
||||
@@ -1110,6 +1141,7 @@ textsecure.MessageSender = function MessageSenderWrapper(
|
||||
this.sendReadReceipts = sender.sendReadReceipts.bind(sender);
|
||||
this.makeProxiedRequest = sender.makeProxiedRequest.bind(sender);
|
||||
this.getProxiedSize = sender.getProxiedSize.bind(sender);
|
||||
this.getMessageProto = sender.getMessageProto.bind(sender);
|
||||
};
|
||||
|
||||
textsecure.MessageSender.prototype = {
|
||||
|
||||
Reference in New Issue
Block a user