[FIX] App can't reopening a room in some cases (#2429)
This commit is contained in:
parent
67ecab7169
commit
77ecd12d71
|
@ -46,6 +46,7 @@ export default class RoomSubscription {
|
|||
unsubscribe = async() => {
|
||||
console.log(`[RCRN] Unsubscribing from room ${ this.rid }`);
|
||||
this.isAlive = false;
|
||||
reduxStore.dispatch(unsubscribeRoom(this.rid));
|
||||
if (this.promises) {
|
||||
try {
|
||||
const subscriptions = await this.promises || [];
|
||||
|
@ -62,8 +63,6 @@ export default class RoomSubscription {
|
|||
if (this.timer) {
|
||||
clearTimeout(this.timer);
|
||||
}
|
||||
|
||||
reduxStore.dispatch(unsubscribeRoom(this.rid));
|
||||
}
|
||||
|
||||
removeListener = async(promise) => {
|
||||
|
|
Loading…
Reference in New Issue