Conversation.loadQuoteThumbnail: Be resilient to no attachments

This commit is contained in:
Scott Nonnenberg 2018-04-13 16:25:45 -07:00
parent a6467d4fda
commit 04d186c05a
No known key found for this signature in database
GPG key ID: 5F82280C35134661

View file

@ -1157,6 +1157,10 @@
const { quote } = message.attributes;
const { attachments } = quote;
const first = attachments[0];
if (!first) {
return false;
}
const { thumbnail } = first;
if (!thumbnail) {