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

fix(chat): promptly update messages list in sidebar, store and chat #12632

Merged
merged 4 commits into from
Jul 3, 2024

Conversation

Antreesy
Copy link
Contributor

@Antreesy Antreesy commented Jul 2, 2024

☑️ Resolves

  • Update deleted messages in LefSidebar
  • Drop last edit information for deleted messages (edited before)
  • Simplify soft group update in MessagesList
    • keep simple conditions: 1 group no longer exists, 2 group did not exist before, 3 group is different from previous version
    • re-sort conditions for groups identical comparison (to make early return on less complex operations)

To test:

Tip

Case 1: delete message

Before After
not updated in LefrtSidebar updated at the same time

Tip

Case 2: delete edited message

Before After
image image

Tip

Case 3: drop last commit, post message 1, post message 2, edit message 2, delete message 2

Before After
image image

🏁 Checklist

  • 🌏 Tested with Chrome, Firefox and Safari or should not be risky to browser differences
  • 🖥️ Tested with Desktop client or should not be risky for it
  • ⛑️ Tests are included or not possible

Antreesy added 2 commits July 2, 2024 19:52
- fix from ed3b02c is no longer an issue

Signed-off-by: Maksim Sukharev <[email protected]>
@Antreesy Antreesy added this to the 💙 Next Major (30) milestone Jul 2, 2024
@Antreesy Antreesy requested a review from DorraJaouad July 2, 2024 19:16
@Antreesy Antreesy self-assigned this Jul 2, 2024
@Antreesy Antreesy force-pushed the feat/noid/delete-message-reactive branch from 3f3f092 to 65c1210 Compare July 3, 2024 09:56
Copy link
Contributor

@DorraJaouad DorraJaouad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested 🦅 , looks good!

Antreesy added 2 commits July 3, 2024 15:33
- less conditions: group no longer exists, did not exist before or different from previous version
- re-sort conditions for groups comparison (to make early return on less complex operations

Signed-off-by: Maksim Sukharev <[email protected]>
@Antreesy Antreesy force-pushed the feat/noid/delete-message-reactive branch from fe17bde to 4b5daa2 Compare July 3, 2024 13:33
@Antreesy Antreesy merged commit 372d728 into main Jul 3, 2024
46 checks passed
@Antreesy Antreesy deleted the feat/noid/delete-message-reactive branch July 3, 2024 14:01
@Antreesy
Copy link
Contributor Author

Antreesy commented Jul 3, 2024

/backport to stable29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants