Recalculate message height when pending sticker is loaded
This commit is contained in:
parent
0beb1416d1
commit
936768d9c1
2 changed files with 39 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue