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 c887dc704c
commit aa4694d390
3 changed files with 3 additions and 3 deletions

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++)

View file

@ -118,7 +118,7 @@
}
else if ([msgtype isEqualToString:kMXMessageTypeAudio])
{
return [UIImage imageNamed:@"file_audio_icon"];
return [UIImage imageNamed:@"file_music_icon"];
}
else if ([msgtype isEqualToString:kMXMessageTypeVideo])
{

View file

@ -129,7 +129,7 @@
image = [UIImage imageNamed:@"file_photo_icon"];
break;
case MXKAttachmentTypeAudio:
image = [UIImage imageNamed:@"file_audio_icon"];
image = [UIImage imageNamed:@"file_music_icon"];
break;
case MXKAttachmentTypeVideo:
image = [UIImage imageNamed:@"file_video_icon"];