better guard

pull/502/head
Ryan Tharp 6 years ago
parent e6d22aab19
commit ca5275b410

@ -639,7 +639,7 @@ class LokiPublicChannelAPI {
},
],
};
if (quote.id) {
if (quote && quote.id) {
// copied from model/message.js copyFromQuotedMessage
const collection = await Signal.Data.getMessagesBySentAt(quote.id, {
MessageCollection: Whisper.MessageCollection,

Loading…
Cancel
Save