-
Notifications
You must be signed in to change notification settings - Fork 439
[NEW] Audio message with message headers #2250
[NEW] Audio message with message headers #2250
Conversation
… called in the subclasses
…he message's header and adapt MessageSection and MessagesViewController to support it
Codecov Report
@@ Coverage Diff @@
## feature/integrate-rc-view-controller #2250 +/- ##
========================================================================
- Coverage 26.95% 26.53% -0.43%
========================================================================
Files 419 423 +4
Lines 15746 15877 +131
========================================================================
- Hits 4245 4213 -32
- Misses 11501 11664 +163
Continue to review full report at Codecov.
|
@@ -94,12 +110,12 @@ final class MessageSection: ChatSection { | |||
).wrapped) | |||
} | |||
|
|||
if !object.isSequential { | |||
if !object.isSequential && !object.message.text.isEmpty { |
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.
Should you use shouldAppendMessageHeader
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.
Sure
@@ -2,15 +2,16 @@ | |||
// AudioMessageCell.swift | |||
// Rocket.Chat | |||
// | |||
// Created by Rafael Streit on 28/09/18. | |||
// Created by Filipe Alvarenga on 15/10/18. |
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.
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.
Hahah, this is because I refactored the former AudioMessageCell
to AudioCell
then created a new file called AudioMessageCell
but the diff couldn't track it right
self.emoji = emoji | ||
self.date = 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.
👍
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.
Looking really nice! 👍
@RocketChat/ios
I'll split these changes into more PRs to avoid a big one.