-
-
Notifications
You must be signed in to change notification settings - Fork 833
When pinning or unpinning messages, link to the specific message #6489
When pinning or unpinning messages, link to the specific message #6489
Conversation
Signed-off-by: Paulo Pinto <[email protected]>
Signed-off-by: Paulo Pinto <[email protected]>
Signed-off-by: Paulo Pinto <[email protected]>
I'm not super happy with the code here since there's a lot of repetition happening and the I think another subject to consider would be the need for the Finally, something else to consider is that there's some shared concerns between the code in the |
Signed-off-by: Paulo Pinto <[email protected]>
Signed-off-by: Paulo Pinto <[email protected]>
(if this is ready for review, please take it out of draft state - thanks!) |
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.
overall it looks great, just a couple points to cover!
Signed-off-by: Paulo Pinto <[email protected]>
So that there's one top level `describe('TextForEvent')`, followed by a nested `describe('textForPinnedEvent')`, containting all the `it()`s. Signed-off-by: Paulo Pinto <[email protected]>
Signed-off-by: Paulo Pinto <[email protected]>
The test case is: "mentions message when a single message was pinned, with multiple previously pinned messages" However, the test case was also unpinning messages. That is now fixed. Signed-off-by: Paulo Pinto <[email protected]>
Just moving test cases so that "generic message" ones are grouped at the bottom. Signed-off-by: Paulo Pinto <[email protected]>
Signed-off-by: Paulo Pinto <[email protected]>
I believe I've addressed all remarks, this should be ready for re-review 🙏 |
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! Here's hoping design gets to it soon 😅
Designer is here to review and it looks good! 👯 👯 |
Fixes element-hq/element-web#17947
This PR makes it so that, whenever a single message is pinned or unpinned, a link to the message is supplied. Whenever more than one message is pinned/unpinned, it falls back to the previous behavior:
Foo changed the pinned messages for the room.