-
Notifications
You must be signed in to change notification settings - Fork 437
[CHORE] Support empty title & alias on the message #2341
Conversation
Rocket.Chat/Views/Chat/New Chat/ChatItems/BaseTextAttachmentChatItem.swift
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## develop #2341 +/- ##
===========================================
- Coverage 26.36% 26.25% -0.12%
===========================================
Files 440 440
Lines 16278 16349 +71
===========================================
Hits 4292 4292
- Misses 11986 12057 +71
Continue to review full report at Codecov.
|
| avatar: message?.avatar, | ||
| emoji: message?.emoji, | ||
| alias: message?.alias, | ||
| date: message?.createdAt, |
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.
👍
| } | ||
|
|
||
| init(user: UnmanagedUser?, avatar: String?, emoji: String?, date: Date?, isUnread: Bool = false) { | ||
| init(user: UnmanagedUser?, avatar: String?, emoji: String?, alias: String?, date: Date?, isUnread: Bool = false) { |
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.
What about doing the same thing here as you did in the other places?
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.
Yes! :-)
Rocket.Chat/Views/Chat/New Chat/ChatItems/BaseTextAttachmentChatItem.swift
Outdated
Show resolved
Hide resolved
| init( | ||
| identifier: String, | ||
| title: String?, | ||
| descriptionText: String?, |
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.
👍
| super.init( | ||
| user: user, | ||
| avatar: message.avatar, | ||
| emoji: message.emoji, |
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.
👍
|
|
||
| super.init( | ||
| user: user, | ||
| avatar: message?.avatar, |
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.
👍
| init( | ||
| identifier: String, | ||
| fields: [UnmanagedField], | ||
| title: String, |
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.
👍
| super.init( | ||
| collapsed: collapsed, | ||
| user: user, | ||
| avatar: message?.avatar, |
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.
👍
| init(identifier: String, descriptionText: String?, videoURL: URL?, videoThumbPath: URL?, hasText: Bool, user: UnmanagedUser?, message: UnmanagedMessage?) { | ||
| init( | ||
| identifier: String, | ||
| descriptionText: String?, |
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.
👍
|
|
||
| super.init( | ||
| user: user, | ||
| avatar: message?.avatar, |
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.
👍
@RocketChat/ios
Closes #2323