mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
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:
parent
c887dc704c
commit
aa4694d390
3 changed files with 3 additions and 3 deletions
|
@ -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++)
|
||||
|
|
|
@ -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])
|
||||
{
|
||||
|
|
|
@ -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"];
|
||||
|
|
Loading…
Reference in a new issue