-
Notifications
You must be signed in to change notification settings - Fork 987
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 replies & pinned messages #15689
Conversation
Jenkins BuildsClick to see older builds (63)
|
[quo2.core :as quo] | ||
[status-im2.contexts.chat.messages.avatar.style :as style])) | ||
|
||
(defn avatar [from size] |
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.
"Connected" component https://react-redux.js.org/api/connect , so it can be reused in multiple places without having to subscribe everywhere
@@ -32,16 +32,29 @@ | |||
;; TODO this is too expensive, probably we could mark message somehow and just hide it in the UI | |||
(message-list/rebuild-message-list {:db (update-in db [:messages chat-id] dissoc message-id)} chat-id)) | |||
|
|||
(defn add-pinned-message [acc chat-id message-id 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.
We check if the message is pinned so we can update it correctly.
3cd2980
to
d729408
Compare
ac20367
to
e30823c
Compare
e30823c
to
3fbc185
Compare
[status-im2.contexts.chat.messages.avatar.style :as style])) | ||
|
||
(defn avatar | ||
[from size] |
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.
oh yes, public-key
probably better?
3fbc185
to
93dc328
Compare
I checked out the branch and played around a bit with pinned messages. Looks good to me 👍 |
93dc328
to
5cd1f9b
Compare
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.
Left only minor comments.
33% of end-end tests have passed
Not executed tests (26)Failed tests (2)Click to expandClass TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Passed tests (1)Click to expandClass TestActivityCenterContactRequestMultipleDevicePR:
|
5cd1f9b
to
e1bf52a
Compare
79% of end-end tests have passed
Not executed tests (10)Failed tests (4)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Passed tests (15)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
|
83% of end-end tests have passed
Failed tests (5)Click to expandClass TestActivityMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Passed tests (24)Click to expandClass TestActivityMultipleDevicePR:
Class TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
|
@cammellos ISSUE 8: when tapping on pinned message in the bottom sheet, there is no "Unpin" optionSteps:
Expected result: FILE.2023-04-24.17.13.26.mp4OS: IOS, Android |
136ba12
to
4e8a3f6
Compare
@churik should be fixed in the last build, thank you! |
83% of end-end tests have passed
Failed tests (5)Click to expandClass TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Passed tests (24)Click to expandClass TestCommunityOneDeviceMerged:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestActivityMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
|
20% of end-end tests have passed
Failed tests (4)Click to expandClass TestActivityCenterContactRequestMultipleDevicePR:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityMultipleDeviceMerged:
Passed tests (1)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUi:
|
@cammellos |
@churik I'll fix it, I missed it :) |
abecbb6
to
ed776e4
Compare
@churik it should be fixed, I scheduled a re-run of the tests, thank you |
50% of end-end tests have passed
Failed tests (2)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestActivityCenterContactRequestMultipleDevicePR:
Passed tests (2)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
|
@cammellos ISSUE 9: logs sending is not really working on Android, and the intended mail window is not opened instantly on IOS as wellAndroid: FILE.2023-04-25.15.27.09.mp4IOS: FILE.2023-04-25.15.29.41.mp4 |
@churik do you have status logs for this issue? Thanks! |
It works on nightly; let me build latest develop just in case |
built the latest develop; it works there and doesn't work in the current PR |
UPD: issue 9 could not reproduce (magic???) ISSUE 10: error on single tap on a message from the pinned bottom sheet (IOS only)Steps:
Actual result: OS: IOS Logs: |
Issue 10 will be logged and addressed separately. |
status-im/status-go@e8ceed1...213dc46 Both replies and pinned messages relied on subscribing their data from messages. This worked only as long as we loaded the message in the database, so it would break say if another user replied to a message that wasn't in the current user view. It also changes the way pinned messages are handled, before the notification was actually sent over the wire, but that's unnecessary, since it can be generated locally on both parts. This is a bit of a breaking change with the previous version, since if you pin a message with this version, older version will not see a system message. this can be easily fixed by restoring the previous behavior of sending the message, but not sure it's worth it. It also adds the ability to Delete message for everyone that have Deleted for me (discussed with John) and the ability of unpin messages that have been deleted for me.
ed776e4
to
2438af4
Compare
Thank you @VladimrLitvinenko @churik !!! |
Both replies and pinned messages relied on subscribing their data from
messages
.This worked only as long as we loaded the message in the database, so it would break say if another user replied to a message that wasn't in the current user view.
It also changes the way pinned messages are handled, before the notification was actually sent over the wire, but that's unnecessary, since it can be generated locally on both parts.
This is a bit of a breaking change with the previous version, since if you pin a message with this version, older version will not see a system message. this can be easily fixed by restoring the previous behavior of sending the message, but not sure it's worth it.
it also adds the ability to Delete message for everyone that have Deleted for me (discussed with John) and the ability of unpin messages that have been deleted for me.
I will add a couple of unit tests to validate the new features, but in the meantime I would like to get it through the testing pipeline as likely there will be some issues to address.
status-go PR status-im/status-go#3414
I wanted to move the UI code, but it's already quite a few changes so I wanted to minimize disruptions.
Area to tests (communities/group-chat/1-to-1):
I'll try to address this in this PR, but I think it should be ok to address separately, if qa is happy with it.