-
Notifications
You must be signed in to change notification settings - Fork 211
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-891] Flawless message list scrolling #1219
Conversation
Generated by 🚫 Danger |
aa9d526
to
9d12505
Compare
Codecov Report
@@ Coverage Diff @@
## main #1219 +/- ##
=======================================
Coverage 91.27% 91.27%
=======================================
Files 217 217
Lines 9292 9292
=======================================
Hits 8481 8481
Misses 811 811
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
9d12505
to
7158f32
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 a few comments. Looks good overall!
Sources/StreamChatUI/ChatMessageList/ChatMessage/ChatMessageCollectionViewCell.swift
Outdated
Show resolved
Hide resolved
Sources/StreamChatUI/ChatMessageList/ChatMessage/ChatMessageCollectionViewCell.swift
Outdated
Show resolved
Hide resolved
Sources/StreamChatUI/ChatMessageList/ChatMessageListCollectionView.swift
Outdated
Show resolved
Hide resolved
Sources/StreamChatUI/ChatMessageList/ChatMessageListCollectionView.swift
Outdated
Show resolved
Hide resolved
d563f1b
to
d613b67
Compare
Sources/StreamChatUI/ChatMessageList/ChatMessage/ChatMessageTableViewCell.swift
Outdated
Show resolved
Hide resolved
Sources/StreamChatUI/ChatMessageList/ChatMessageListKeyboardObserver.swift
Outdated
Show resolved
Hide resolved
open func messageContentViewDidTapOnThread(_ indexPath: IndexPath?) { | ||
guard let indexPath = indexPath else { return log.error("IndexPath is not available") } | ||
guard let channel = channelController.channel else { return } | ||
|
||
let controller = _ChatThreadVC<ExtraData>() | ||
controller.channelController = channelController | ||
controller.messageController = channelController.client.messageController( | ||
cid: channel.cid, | ||
messageId: messageController.replies[indexPath.item].id | ||
) | ||
navigationController?.show(controller, sender: self) | ||
log.error("Nestead threads are not supported") | ||
} |
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.
If this is not supported why do we have the method here?
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 don't provide empty default implementations for ChatMessageContentViewDelegate
. should we?
Sources/StreamChatUI/ChatMessageList/Reactions/ChatMessageReactionsVC.swift
Show resolved
Hide resolved
d613b67
to
a6a4258
Compare
a6a4258
to
b716a9a
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.
Great 🎉 Just a few nit comments.
Sources/StreamChatUI/ChatMessageList/ChatMessage/ChatMessageCell.swift
Outdated
Show resolved
Hide resolved
b716a9a
to
9a78805
Compare
9a78805
to
2fa6ece
Compare
/// The minimum spacing below the cell. | ||
public var minimumSpacingBelow: CGFloat = 2 { | ||
didSet { updateBottomSpacing() } | ||
} |
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.
minimumBottomSpace
is a bit more clear and conventional?
let convertedKeyboardFrame = containerView.convert(keyboardFrame, from: UIScreen.main.coordinateSpace) | ||
let intersectedKeyboardHeight = containerView.frame.intersection(convertedKeyboardFrame).height |
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.
Deleting these lines will make the keyboard observer not supporting undocked keyboards on the iPad: More information in this WWDC talk: https://developer.apple.com/videos/play/wwdc2017/242/
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 for finding this 👍 put back in #1229
/// - listView: A view requesting date | ||
/// - indexPath: An index path that should be used to get the date |
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.
Requesting data? Instead of date? In both arguments docs
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.
the scroll overlay shows the date for the message it intersects with that's from where the naming came
This PR fixes all knows message-list scrolling issues 🎉