bug: Leaving rooms is impossible when forget_forced_upon_leave=true #2321
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity#2321
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What is the bug?
When
forget_forced_upon_leaveis set totruein the config, continuwuity immediately forgets rooms that the client just left, before it has a chance to sync them. The result is that left rooms end up being stuck in clients until an initial sync is performed.It looks like this can also happen if a room is banned via
!admin rooms moderation ban-roomSteps to reproduce
forget_forced_upon_leavetotrueServer name and version
nexy7574.co.uk v26.9.1
1e34bd2ed9Additional context
if self.services.globals.user_is_local(user_id)&& (self.services.config.forget_forced_upon_leave|| self.services.metadata.is_banned(room_id).await|| self.services.metadata.is_disabled(room_id).await){self.forget(room_id, user_id);}Going to drop the priority for this issue - there doesn't seem to be an easy way to solve this without either removing the forgetting function altogether, or faking the "forget" functionality (like adding a forget marker, similar to Synapse, which kinda defeats the point)