Merge pull request #1380 from vector-im/riot_1102

Bug Fix: Add the m.audio attachments support
This commit is contained in:
manuroe
2017-07-06 14:02:49 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -220,7 +220,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++)