-
Notifications
You must be signed in to change notification settings - Fork 979
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
Don't load chat view until chat is fetched #19988
Conversation
@@ -114,20 +114,20 @@ | |||
|
|||
(defn list-footer-avatar | |||
[{:keys [distance-from-list-top display-name online? profile-picture theme group-chat color | |||
emoji chat-type chat-name last-message]}] |
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.
For chat screen we have a special subscription :chats/current-chat-chat-view
which returns selected keys only to avoid unnecessary re-renders.
But in the sub we are also returning :last-message, which I think is one the most active key in chat object.
Jenkins BuildsClick to see older builds (12)
|
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.
Looks good ✅
Nice change for turning last-message
into empty-chat?
🙌
can you include a video/ some screenshots of how this looks? |
(let [scale (reanimated/interpolate | ||
distance-from-list-top | ||
[0 (if (seq last-message) messages.constants/header-container-top-margin 0)] | ||
[0 (if empty-chat? 0 messages.constants/header-container-top-margin)] |
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.
no strong opinions but maybe it's better to abstract to a helper function?
85% of end-end tests have passed
Failed tests (6)Click to expandClass TestDeepLinksOneDevice:
Class TestWalletMultipleDevice:
Class TestWalletOneDevice:
Class TestGroupChatMultipleDeviceMergedNewUI:
Expected to fail tests (2)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Passed tests (44)Click to expandClass TestActivityMultipleDevicePRTwo:
Class TestWalletOneDevice:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityMultipleDeviceMerged:
Class TestActivityMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
|
48df59e
to
11c3b50
Compare
Thank you @ilmotta and @J-Son89 for reviewing PR. It seems status-mobile/src/status_im/subs/chats.cljs Line 134 in d658fcf
So updated the subscription to
Updated the PR description with the video. thank you |
["@walletconnect/web3wallet" :refer [Web3Wallet]] | ||
(:require ["@walletconnect/core" :refer [Core]] | ||
["@walletconnect/react-native-compat"] |
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.
File updated by make lint-fix
77% of end-end tests have passed
Failed tests (10)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestDeepLinksOneDevice:
Class TestWalletMultipleDevice:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Expected to fail tests (2)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
Passed tests (40)Click to expandClass TestActivityMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestActivityMultipleDevicePRTwo:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestCommunityOneDeviceMerged:
Class TestWalletOneDevice:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
|
@Parveshdhull thank you for the PR! It looks good to me. The only problem I am thinking about is that there is no way to close this screen on IOS while cannel is in loading state. On Android we can only go back by using system back button. Maybe we still need to show close button in top left corner? WDYT? |
yes, that sounds good. Pushing changes with close button |
11c3b50
to
9888844
Compare
done, please let me if looks ok |
Thanks @Parveshdhull! Looks good to me. Please, take a look at another issue ISSUE 1 Skeleton remains after channel has been fetched, channel icon, header are wrongSteps:
Actual result: Skeleton remains after channel has been fetched, channel icon is wrong telegram-cloud-document-2-5345893055427790036.mp4 |
9888844
to
0b593a4
Compare
Thanks for the PR @Parveshdhull! It is ready for merge now. ISSUE 1 is not related to this PR and is fixed by @Parveshdhull here #20093 |
0b593a4
to
bc5c172
Compare
fixes #19659
Video
output-2024-05-14_17.13.34.mp4
Testing
Issue 1, 2, 3 should be fixed
status: ready