From b2b1ca293477910eedc22dcf75c07e7e0083d796 Mon Sep 17 00:00:00 2001 From: or-else Date: Sat, 25 Nov 2017 14:24:18 -0800 Subject: [PATCH] kind of works but buggy --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 32e6be96..b8de80a6 100644 --- a/index.html +++ b/index.html @@ -2739,7 +2739,7 @@ this.setState(function(prevState, props) { if (!prevState.fetchingMessages) { var topic = Tinode.getTopic(instance.state.topic); - if (topic && topic.msgHasMore()) { + if (topic && topic.isSubscribed() && topic.msgHasMore()) { newState.fetchingMessages = true; topic.getMessagesPage(MESSAGES_PAGE).then(function() { instance.setState({fetchingMessages: false});