Skip to content

Commit

Permalink
Remove entries from expiring members queue when channel deleted (#6924)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Nov 29, 2024
1 parent 3fb6db5 commit 361d562
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/canisters/community/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Changed

- Remove channel links from being stored on each community member ([#6923](https://github.com/open-chat-labs/open-chat/pull/6923))
- Remove entries from expiring members queue when channel deleted ([#6924](https://github.com/open-chat-labs/open-chat/pull/6924))

## [[2.0.1479](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.1479-community)] - 2024-11-28

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ fn delete_channel_impl(channel_id: ChannelId, state: &mut RuntimeState) -> Respo
state.data.members.mark_member_left_channel(*user_id, channel_id, true, now);
}

if channel.chat.gate_config.value.is_some_and(|gc| gc.expiry.is_some()) {
state.data.expiring_members.remove_gate(Some(channel_id));
}

handle_activity_notification(state);

Success
Expand Down

0 comments on commit 361d562

Please sign in to comment.