-
Notifications
You must be signed in to change notification settings - Fork 204
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
[CIS-1724] Fix only visible for you
badge not shown for ephemeral messages
#1948
Conversation
6f2b61c
to
d81ec4e
Compare
d81ec4e
to
452d0bc
Compare
452d0bc
to
356da2c
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.
Overall looks good to me ✅ It is unfortunate we have to do this 😞 But we will improve it on v5 👍
I will officially approve it once we release 4.14.0. Otherwise, the changelog won't be in sync.
CHANGELOG.md
Outdated
@@ -37,6 +38,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). | |||
- Fix audio files not rendering previews [#1907](https://github.com/GetStream/stream-chat-swift/issues/1907) | |||
- Fix message sender name is not shown in channel with > 2 members if member identifiers were passed on channel creation [#1931](https://github.com/GetStream/stream-chat-swift/issues/1931) | |||
- Fix incorrectly called viewWillAppear inside viewWillDissapear [#1938](https://github.com/GetStream/stream-chat-swift/pull/1938) | |||
- Fix `onlyVisibleForYouIndicator` not being shown for ephemeral messages [#1948](https://github.com/GetStream/stream-chat-swift/pull/1948) |
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.
Friendly reminder to update the changelog after release ⏰
// TODO: Propagate via `init` in v5. | ||
/// The deleted messags visability. Is automatically populated from `ChatClient.config`. | ||
public internal(set) var deletedMessagesVisibility: ChatClientConfig.DeletedMessageVisibility = .alwaysVisible |
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.
Isn't it better to pass the whole ChatClientConfig? What if we need more stuff from it in the future? Then, we might keep adding new properties every time we need something from the chat client config.
We kinda need to rethink this in v5, the resolver probably needs to have access to the Components config as well (Example: The date separators). Or better, in v5 all UI Configs should live in the same data structure and not be mixed with ChatClientConfig + Components config.
Can we add this to our V5 Document and link this PR as well? That would be nice! So that we don't forget about this (We might forget this TODO comment)
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.
Updated to pass the entire config and added the point to v5 doc ✅
28a81f9
to
cf6f99c
Compare
d7cf4c9
to
46cb5df
Compare
Generated by 🚫 Danger |
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.
LGTM! ✅
46cb5df
to
1a52727
Compare
1a52727
to
1143439
Compare
Kudos, SonarCloud Quality Gate passed! |
🔗 Issue Links
Fixes: CIS-1724
Unblocks: CIS-1732
🎯 Goal
only visible for you
indicator is not shown for ephemeral messagesChatMessageContentView's
snapshot tests for deleted messages when visibility part is inChatMessageListVC
.📝 Summary
only visible for you
indicator missing for ephemeral messageChatMessageListVC's
lifecycle being triggered by assigning the delegate before it has a parentChatMessage.isOnlyVisibleForCurrentUser
has been deprecated🛠 Implementation
Move deleted message visibility check to
ChatMessageLayoutOptionsResolver
. Populate deleted messages setting on resolver fromchatClient.config
as the first thing on the message list.🎨 Showcase
🧪 Manual Testing Notes
GIVEN I'm in the channel
WHEN I use
/giffy
command and send the messageTHEN Ephemeral message with giffy picker appears in channel
AND Ephemeral message has
only visible to you
badgeGIVEN I'm in thread
WHEN I use
/giffy
command and send the thread replyTHEN Ephemeral reply with giffy picker appears in thread
AND Ephemeral reply has
only visible to you
badge☑️ Contributor Checklist
🎁 Meme