Conversation.loadQuoteThumbnail: Be resilient to no attachments
This commit is contained in:
parent
a6467d4fda
commit
04d186c05a
1 changed files with 4 additions and 0 deletions
|
@ -1157,6 +1157,10 @@
|
|||
const { quote } = message.attributes;
|
||||
const { attachments } = quote;
|
||||
const first = attachments[0];
|
||||
if (!first) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const { thumbnail } = first;
|
||||
|
||||
if (!thumbnail) {
|
||||
|
|
Loading…
Add table
Reference in a new issue