Skip to content

Support multiple Matrix accounts simultaneous Issue 374#29

Merged
ZhangHanDong merged 32 commits intomainfrom
issue_374_china2
Apr 2, 2026
Merged

Support multiple Matrix accounts simultaneous Issue 374#29
ZhangHanDong merged 32 commits intomainfrom
issue_374_china2

Conversation

@alanpoon
Copy link
Copy Markdown

project-robius#374

Screen.Recording.2026-03-27.at.7.37.00.PM.mov

kevinaboos and others added 24 commits March 24, 2026 09:58
…App)

this makes a bit more sense imo, as the top-level App shouldn't really
be responsible for dealing with these details.
Optimizes `SubscribeToTypingNotices` by using `join_all` instead of a sequential loop when fetching display names for typing users, reducing latency and making member lookups run concurrently.

Co-authored-by: kevinaboos <1139460+kevinaboos@users.noreply.github.com>
Introduces AccountManager for handling multiple Matrix accounts:
- Account struct for storing client, user_id, session, profile info
- AccountManager for add/remove/switch account operations
- Global singleton with thread-safe access functions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- app.rs: Handle account switching actions and state, add adding_account field
- sliding_sync.rs: Add AccountSwitchAction, is_add_account flag for logins,
  support running multiple sync connections
- login_screen.rs: Support add-account login flow
- account_settings.rs: Account switcher UI integration
- navigation_tab_bar.rs: Account indicator updates

Note: File logging changes (issue project-robius#345) intentionally excluded.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ZhangHanDong
Copy link
Copy Markdown

@alanpoon Resolve conflicts please.

1 similar comment
@ZhangHanDong
Copy link
Copy Markdown

@alanpoon Resolve conflicts please.

@alanpoon
Copy link
Copy Markdown
Author

alanpoon commented Apr 1, 2026

Fix merge conflict.

@ZhangHanDong ZhangHanDong merged commit a1f6700 into main Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants