mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Refine Sealed Sender behaviors
This commit is contained in:
@@ -181,10 +181,12 @@
|
||||
);
|
||||
});
|
||||
},
|
||||
prepareForSend(id) {
|
||||
prepareForSend(id, options) {
|
||||
// id is either a group id or an individual user's id
|
||||
const conversation = this.get(id);
|
||||
const sendOptions = conversation && conversation.getSendOptions();
|
||||
const sendOptions = conversation
|
||||
? conversation.getSendOptions(options)
|
||||
: null;
|
||||
const wrap = conversation
|
||||
? conversation.wrapSend.bind(conversation)
|
||||
: promise => promise;
|
||||
|
||||
Reference in New Issue
Block a user