Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles committed Jul 25, 2024
1 parent b5b56e3 commit ecabe13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/canisters/group/impl/src/updates/c2c_join_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn is_permitted_to_join(args: &Args, state: &RuntimeState) -> Result<Option<(Acc
Err(ChatFrozen)
} else if let Some(limit) = state.data.chat.members.user_limit_reached() {
Err(ParticipantLimitReached(limit))
} else if state.data.get_invitation(caller).is_some() {
} else if state.data.get_invitation(args.principal).is_some() {
Ok(None)
} else if !state.data.chat.is_public.value && !state.data.is_invite_code_valid(args.invite_code) {
Err(NotInvited)
Expand Down

0 comments on commit ecabe13

Please sign in to comment.