kind of works but buggy
This commit is contained in:
+1
-1
@@ -2739,7 +2739,7 @@
|
|||||||
this.setState(function(prevState, props) {
|
this.setState(function(prevState, props) {
|
||||||
if (!prevState.fetchingMessages) {
|
if (!prevState.fetchingMessages) {
|
||||||
var topic = Tinode.getTopic(instance.state.topic);
|
var topic = Tinode.getTopic(instance.state.topic);
|
||||||
if (topic && topic.msgHasMore()) {
|
if (topic && topic.isSubscribed() && topic.msgHasMore()) {
|
||||||
newState.fetchingMessages = true;
|
newState.fetchingMessages = true;
|
||||||
topic.getMessagesPage(MESSAGES_PAGE).then(function() {
|
topic.getMessagesPage(MESSAGES_PAGE).then(function() {
|
||||||
instance.setState({fetchingMessages: false});
|
instance.setState({fetchingMessages: false});
|
||||||
|
|||||||
Reference in New Issue
Block a user