Skip to content

Commit

Permalink
fix: Fixes jitsi/jitsi-meet#9502 reload of authenticated users.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Jul 12, 2021
1 parent 69f08b1 commit b98c417
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,14 @@ class AuthenticationRoleManager(
grantOwnerToAuthenticatedUsers()
}

/**
* Handles cases where moderators(already authenticated users) reload and join again.
*/
override fun memberJoined(member: ChatRoomMember) {
if (member.role != MemberRole.OWNER && authenticationAuthority.getSessionForJid(member.jid) != null) {
grantOwner(member)
}
}

override fun stop() = authenticationAuthority.removeAuthenticationListener(authenticationListener)
}

1 comment on commit b98c417

@Freddie-m
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this prompt fix @damencho!

Please sign in to comment.