Skip to content

Commit

Permalink
fix: Display the correct warning when team setting does not allow gue…
Browse files Browse the repository at this point in the history
…st links (#17120)
  • Loading branch information
atomrc authored Mar 21, 2024
1 parent 876501f commit 6a0b1cf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ const GuestOptions: FC<GuestOptionsProps> = ({
return isGuestEnabled ? t('guestOptionsInfoText', Config.getConfig().BRAND_NAME) : t('guestRoomToggleInfo');
}, [inTeam, isGuestEnabled, accessCodeHasPassword]);

const guestLinkDisabledInfo = !conversationHasGuestLinkEnabled
? t('guestLinkDisabledByOtherTeam')
: t('guestLinkDisabled');
const guestLinkDisabledInfo = !isTeamStateGuestLinkEnabled
? t('guestLinkDisabled')
: t('guestLinkDisabledByOtherTeam');

const toggleGuestAccess = async () => {
await toggleAccessState(
Expand Down

0 comments on commit 6a0b1cf

Please sign in to comment.