Skip to content

fix(sliding-sync): drop stale invite state for joined rooms in sidebar cache#1284

Merged
7w1 merged 1 commit into
SableClient:devfrom
eleboucher:fix/sidebar-cache-invite-state
Jul 24, 2026
Merged

fix(sliding-sync): drop stale invite state for joined rooms in sidebar cache#1284
7w1 merged 1 commit into
SableClient:devfrom
eleboucher:fix/sidebar-cache-invite-state

Conversation

@eleboucher

@eleboucher eleboucher commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Description

On homeservers that keep sending invite_state for a room the user has already joined (e.g. Continuwuity), accepting a local invite left the room "half-joined": after a restart it reappeared as a pending invite. The sidebar cache persisted the stale invite_state, and matrix-js-sdk treats invite_state as authoritative (it short-circuits to invite membership and ignores required_state), so hydration kept resurrecting the invite.

Fixes #1283

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

AI disclosure:

  • Partially AI assisted (clarify which code was AI assisted and briefly explain what it does).
  • Fully AI generated (explain what all the generated code does in moderate detail).

code review and autocomplete

@eleboucher
eleboucher requested review from 7w1 and hazre as code owners July 24, 2026 15:08
@eleboucher
eleboucher force-pushed the fix/sidebar-cache-invite-state branch from da8f929 to 879c481 Compare July 24, 2026 15:18
@7w1
7w1 added this pull request to the merge queue Jul 24, 2026
Merged via the queue into SableClient:dev with commit 41346eb Jul 24, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[c10y] Sable seems to accept local invites on Continuwuity improperly

2 participants