Repository navigation
[Chat] Handle moderation lock override in group chats - #10835
Merged
Merged
Conversation
Contributor
|
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
arcalinea
temporarily deployed
to
samuel/app-2359 - social-app PR #10835
June 10, 2026 18:51 — with
Render
Destroyed
mozzius
marked this pull request as ready for review
June 10, 2026 18:51
mozzius
requested review from
ds-boyce and
estrattonbailey
and removed request for
estrattonbailey
June 10, 2026 18:52
ds-boyce
approved these changes
Jun 10, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes APP-2359
Some moderation actions (account inactivation, convo takedown) force a group convo into the locked state.
@atproto/api0.20.12 exposes this aslockStatusModerationOverrideonGroupConvo, plus a typedConvoLockedByModerationErroronunlockConvo. When the override is set, the owner shouldn't be able to unlock the chat.UI
locked-permanently.ConvoLockedByModerationErroras a fallback for stale client state.State sync
updateLockStatuson the convo agent now carries the override flag, and the ConvoProvider cache subscriber triggers on override changes, not just lock status changes.logLockConvoevent doesn't say whether the lock is moderation-forced, so the single-convo query is invalidated to refetch the flag (mirroring member-add events). OnlogUnlockConvothe flag is cleared directly, since an unlocked convo can't be moderation-locked.Known gap: if a moderation lock lands while the owner has the convo open, they briefly see the regular locked footer (with unlock button) until the refetch resolves – the log event itself doesn't carry the flag. Tapping unlock in that window hits the typed error toast.
🤖 Generated with Claude Code