Bug Fix: Add the m.audio attachments support

We support here the display of the attached audio files, but we are still not able to attach audio file.

#1102
This commit is contained in:
Giom Foret
2017-07-06 11:06:12 +02:00
parent 962c1d9f00
commit fdeff3db49
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -214,7 +214,7 @@ static NSAttributedString *readReceiptVerticalWhitespace = nil;
if (bubbleComponents.count)
{
// Set position of the first component
CGFloat positionY = (self.attachment == nil || self.attachment.type == MXKAttachmentTypeFile) ? MXKROOMBUBBLECELLDATA_TEXTVIEW_DEFAULT_VERTICAL_INSET : 0;
CGFloat positionY = (self.attachment == nil || self.attachment.type == MXKAttachmentTypeFile || self.attachment.type == MXKAttachmentTypeAudio) ? MXKROOMBUBBLECELLDATA_TEXTVIEW_DEFAULT_VERTICAL_INSET : 0;
MXKRoomBubbleComponent *component;
NSUInteger index = 0;
for (; index < bubbleComponents.count; index++)