Refine Sealed Sender behaviors

This commit is contained in:
Scott Nonnenberg 2018-11-07 11:20:43 -08:00
parent 8391f6ec4e
commit 2d48daa7b6
8 changed files with 59 additions and 32 deletions

View file

@ -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;