Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[NEW] Header of conversations #2357
Conversation
…feature/header_conversations.2328
…feature/header_conversations.2328
Codecov Report
@@ Coverage Diff @@
## develop #2357 +/- ##
===========================================
- Coverage 26.18% 26.02% -0.16%
===========================================
Files 444 447 +3
Lines 16715 16770 +55
===========================================
- Hits 4376 4365 -11
- Misses 12339 12405 +66
Continue to review full report at Codecov.
|
|
Looks great |
|
The header needs to be presented even when there's no message on a conversation, and currently it's not showed |
…feature/header_conversations.2328
… and for it to be unique in a section array (constant id)
…when there's no other message
| let containsUnreadMessageIndicator: Bool | ||
|
|
||
| var containsDateSeparator: Bool { return daySeparator != nil } | ||
|
|
||
| init(message: UnmanagedMessage, daySeparator: Date? = nil, sequential: Bool = false, unreadIndicator: Bool = false, loader: Bool = false, header: Bool = false) { | ||
| init(message: UnmanagedMessage, daySeparator: Date? = nil, sequential: Bool = false, unreadIndicator: Bool = false, loader: Bool = false) { |
houndci-bot
Dec 7, 2018
Line Length Violation: Line should be 120 characters or less: currently 143 characters (line_length)
Line Length Violation: Line should be 120 characters or less: currently 143 characters (line_length)
| @@ -159,6 +160,12 @@ final class MessagesViewController: RocketChatViewController { | |||
| guard let self = self else { return } | |||
| Log.debug("[VIEW MODEL] dataChanged with \(self.viewModel.dataNormalized.count) values.") | |||
|
|
|||
| if self.viewModel.dataNormalized.first?.model.differenceIdentifier == AnyHashable(HeaderChatItem.globalIdentifier) { | |||
houndci-bot
Dec 7, 2018
Line Length Violation: Line should be 120 characters or less: currently 128 characters (line_length)
Line Length Violation: Line should be 120 characters or less: currently 128 characters (line_length)
…Chat/Rocket.Chat.iOS into feature/header_conversations.2328
09d04c1
into
develop
@RocketChat/ios
Closes #2328
--