From d39a19d88992f26a084219ee5cb5a6b812ccbc4a Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 18 Mar 2016 17:06:35 -0700 Subject: [PATCH] Fix crash on read receipt event if no listeners // FREEBIE --- js/background.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/background.js b/js/background.js index 08beed05c..7da22cc34 100644 --- a/js/background.js +++ b/js/background.js @@ -251,8 +251,10 @@ id: message.get('conversationId') }); - // notify frontend listeners - conversation.trigger('read', message); + if (conversation) { + // notify frontend listeners + conversation.trigger('read', message); + } }); } });