Skip to content
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

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

damencho
Copy link
Member

No description provided.

@damencho damencho force-pushed the skip-redirect-on-breakout-move-to-main branch from b796120 to 7224491 Compare September 20, 2024 21:24
@damencho damencho merged commit 5671c5d into master Sep 20, 2024
2 checks passed
@damencho damencho deleted the skip-redirect-on-breakout-move-to-main branch September 20, 2024 21:49
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);
Copy link
Contributor

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(() => {
Copy link
Contributor

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(() => {
Copy link
Contributor

@Romick2005 Romick2005 Sep 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants