Recalculate message height when pending sticker is loaded

This commit is contained in:
Scott Nonnenberg 2019-08-22 15:04:14 -07:00
parent 0beb1416d1
commit 936768d9c1
2 changed files with 39 additions and 12 deletions

View file

@ -406,7 +406,12 @@ async function _addAttachmentToMessage(message, attachment, { type, index }) {
throw new Error("_addAttachmentToMessage: sticker didn't exist");
}
_replaceAttachment(sticker, 'data', attachment, logPrefix);
message.set({
sticker: {
...sticker,
data: attachment,
},
});
return;
}