Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archive and Favorite Status Toggles #386

Open
eylulnc opened this issue Feb 5, 2025 · 0 comments
Open

Archive and Favorite Status Toggles #386

eylulnc opened this issue Feb 5, 2025 · 0 comments

Comments

@eylulnc
Copy link
Contributor

eylulnc commented Feb 5, 2025

There are inconsistencies with how archive and favorite statuses interact as mentioned in PR 374, causing issues in scenarios where a channel should move between the "Archive" and "Favorite" sections.

Steps to Reproduce:

Scenario 1:

Archive a favorite chat (e.g., "paging").
Issue: The chat appears in both the "Archive" and "Favorite" sections instead of being removed from "Favorite."
Scenario 2:

Mark a previously archived channel (e.g., "test2") as a favorite.
Issue: The chat does not move from the "Archive" section to the "Favorite" section as expected.

Expected Behavior:
When a favorite chat is archived, the favorite status should be removed, and the chat should only appear in the "Archive" section.
When a previously archived chat is marked as favorite, it should move to the "Favorite" section and be removed from the "Archive" section.

Actual Behavior:
The chat remains visible in both sections or does not move between sections as expected.

Possible Cause:
There might be a "double-toggle" in the code where two parallel network calls are executed, leading to inconsistent updates on the server.

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

No branches or pull requests

1 participant