mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Outgoing Messages Refactoring:
- Apply the MatrixKit changes in the MXKAttachment class
This commit is contained in:
parent
f0052bf4ae
commit
57f7ee4ef9
1 changed files with 12 additions and 1 deletions
|
@ -54,7 +54,18 @@
|
|||
if (bubbleData.attachment)
|
||||
{
|
||||
self.title.text = bubbleData.attachment.originalFileName;
|
||||
self.date.text = [bubbleData.eventFormatter dateStringFromEvent:bubbleData.attachment.event withTime:NO];
|
||||
|
||||
// In case of attachment, the bubble data is composed by only one component.
|
||||
if (bubbleData.bubbleComponents.count)
|
||||
{
|
||||
MXKRoomBubbleComponent *component = bubbleData.bubbleComponents.firstObject;
|
||||
self.date.text = [bubbleData.eventFormatter dateStringFromEvent:component.event withTime:NO];
|
||||
}
|
||||
else
|
||||
{
|
||||
self.date.text = nil;
|
||||
}
|
||||
|
||||
self.message.text = bubbleData.senderDisplayName;
|
||||
|
||||
self.attachmentImageView.image = nil;
|
||||
|
|
Loading…
Reference in a new issue