-
Notifications
You must be signed in to change notification settings - Fork 984
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(group-chat): Missing group chat name when clearing chat history #21684
base: develop
Are you sure you want to change the base?
Conversation
:empty-chat? | ||
(not (:last-message current-chat))))) | ||
(fn [chat] | ||
{:able-to-send-message? (:able-to-send-message? chat) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In mobile apps using CLJS I prefer to reserve select-keys
only for cases where the list of keys is dynamic. Here we know the fixed set of keys, so I extract directly. Destructuring made the code look longer because the destructured keys span over multiple lines, plus the returned map.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We know select-keys
and merge
are expensive operations, so this change makes a lot of sense 👍
Jenkins BuildsClick to see older builds (4)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR @ilmotta !
acc6321
to
b19b559
Compare
88% of end-end tests have passed
Expected to fail tests (1)Click to expandClass TestCommunityMultipleDeviceMerged:
Passed tests (7)Click to expandClass TestCommunityOneDeviceMerged:
Class TestWalletMultipleDevice:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestWalletOneDevice:
|
88% of end-end tests have passed
Expected to fail tests (1)Click to expandClass TestCommunityMultipleDeviceMerged:
Passed tests (7)Click to expandClass TestWalletMultipleDevice:
Class TestWalletOneDevice:
Class TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
|
b19b559
to
100a26a
Compare
@ilmotta Thank you for your PR! |
Fixes #21639
Summary
Fix missing group name when user chooses drawer option to clear chat history from within the group chat screen.
Areas that may be impacted
Chat option to clear history.
Steps to test
Please refer to the reproduction steps specified in the issue. With the fix applied, you should see the group chat name in the drawer when you try to clear the history from the list of group chats and from within each group chat options drawer.
status: ready