restore topic subscription after a reconnect

This commit is contained in:
or-else
2026-03-01 18:31:24 +03:00
parent 389ef305ab
commit e6dfde28f6
14 changed files with 306 additions and 37 deletions
+2
View File
@@ -514,6 +514,8 @@ class MessagesView extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compone
}
} else if (topic.isSubscribed() && this.state.isReader && !prevState.isReader) {
topic.getMeta(topic.startMetaQuery().withLaterData().build());
} else if (!topic.isSubscribed() && this.props.ready && !prevProps.ready) {
this.subscribe(topic);
}
}
}