From 7d2f4afaae641a76e6317fb1b990c92cd953a67c Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Wed, 8 Jul 2020 13:50:07 -0300 Subject: [PATCH] [FIX] ThreadMessagesView throwing error when subscription wasn't found (#2255) Co-authored-by: Diego Mello --- app/views/ThreadMessagesView/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/ThreadMessagesView/index.js b/app/views/ThreadMessagesView/index.js index 671dd995e..3f319436c 100644 --- a/app/views/ThreadMessagesView/index.js +++ b/app/views/ThreadMessagesView/index.js @@ -127,7 +127,7 @@ class ThreadMessagesView extends React.Component { // eslint-disable-next-line react/sort-comp init = () => { if (!this.subscription) { - this.load(); + return this.load(); } try { const lastThreadSync = new Date();