-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(moderator): Skips redirect events when moving to main from breakout. #2576
Conversation
70628b6
to
b796120
Compare
b796120
to
7224491
Compare
this.room.xmpp.moderator.sendConferenceRequest(this.room.roomjid).finally(resolve); | ||
this.room.xmpp.moderator.sendConferenceRequest(this.room.roomjid) | ||
.catch(e => logger.trace('sendConferenceRequest rejected', e)) | ||
.finally(resolve); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need finally
here? Isn't it better to have just then
?
@@ -239,6 +239,9 @@ export default class ChatRoom extends Listenable { | |||
const preJoin | |||
= this.options.disableFocus | |||
? Promise.resolve() | |||
.finally(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here: Why do you need finally here? Isn't it better to have just then?
}); | ||
} | ||
}).then(() => { | ||
this.conferenceRequestSent = true; | ||
}) | ||
.finally(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be great if you could add catch
-> log some error and then add then
to proceed with this. In general I would suggest to avoid using finally
as mush as possible as it does not work right away in RN
No description provided.