-
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
[15550] Allow unpinning of deleted-for-me messages #15572
Conversation
Jenkins BuildsClick to see older builds (28)
|
This may cause user not be able to pin more messages if there are 3 pinned and deleted-for-me messages, and we hide them in the pinned message list. |
Going to test if that case might happen and how to avoid it, Thanks Rashawn |
I think it shouldn't be filtered, just shown as "deleted for me" message. |
In Telegram, if Alice deletes a pinned message only for her, then the pinned message also disappears, along with the actual message (for her only). I don't understand the point of displaying a deleted pinned message at the top and allowing Alice to unpin a deleted message. In essence, I much prefer Telegram's behavior here. |
Love the mock names |
deleted-for-me?
messages from pinned messages popover
hi @ilmotta . agree with you about convenience. The "deleted message" showing in the pinned bar was implemented in #14488 (comment) But, I think one of the reasons to avoid more than 3 pinned messages (we have limits of no more than 3 pinned messages. Telegram does not have the pinning messages limits) CC: @yqrashawn correct me if I am wrong about the purpose of this functionality which is done in #14488 (comment) Example:
Expected result:How many pinned messages the User_B should have after step 3? Potential solution:
CC: @pedro-et need your help here |
@VladimrLitvinenko That's correct. #14488 allows user to unpin deleted messages (show both deleted/deleted for me messages in pinned message list), and it introduced another edge case, which is what to do with pinned deleted for me messages. Users don't care about deleted-for-me messages, definitely, but I think users do care about if they can pin more messages. |
deleted-for-me?
messages from pinned messages popover
90% of end-end tests have passed
Failed tests (3)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityOneDeviceMerged:
Passed tests (26)Click to expandClass TestActivityMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityOneDeviceMerged:
|
Hi @ibrkhalil, thank you for your work. No issues from my side. PR is tested and ready to be merged |
fixes #15550
Summary
This PR just adds a filter on deleted-for-me pinned messages and doesn't add them to the list of pinned messages
status: ready