Refine Sealed Sender behaviors
This commit is contained in:
parent
8391f6ec4e
commit
2d48daa7b6
8 changed files with 59 additions and 32 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue