Skip to content

fix: avoid duplicate DM entries and harden invalid batch token recovery#80

Open
tyreseluo wants to merge 1 commit intoProject-Robius-China:mainfrom
tyreseluo:fix/dm-roomlist-pagination-recovery
Open

fix: avoid duplicate DM entries and harden invalid batch token recovery#80
tyreseluo wants to merge 1 commit intoProject-Robius-China:mainfrom
tyreseluo:fix/dm-roomlist-pagination-recovery

Conversation

@tyreseluo
Copy link
Copy Markdown

@tyreseluo tyreseluo commented Apr 11, 2026

Summary

  • dedupe room IDs while building displayed room lists so the same DM cannot appear twice after leave/recreate flows
  • improve backwards pagination recovery for invalid batch token errors by clearing event cache and retrying with short backoff (up to 3 attempts)

Verification

  • cargo build

User-facing impact

  • prevents duplicate DM rows in room list in re-created DM scenarios
  • reduces M_INVALID_PARAM "invalid batch token" popups when loading older messages after rejoining/recreating a DM

- dedupe room IDs when building displayed joined/invited room lists to avoid duplicate DM rows\n- on invalid back-pagination batch tokens, clear event cache and retry with short backoff up to 3 times
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.

1 participant