Merge pull request #5461 from vector-im/steve/5209_media_bubbles_2

Message bubbles: Layout for media (part 2)
This commit is contained in:
SBiOSoftWhare
2022-02-01 17:52:19 +01:00
committed by GitHub
58 changed files with 1377 additions and 138 deletions
@@ -744,6 +744,27 @@
return NO;
}
- (BOOL)isAttachment
{
if (!self.attachment)
{
return NO;
}
if (!attachment.contentURL || !attachment.contentInfo) {
return NO;
}
switch (self.attachment.type) {
case MXKAttachmentTypeFile:
case MXKAttachmentTypeAudio:
case MXKAttachmentTypeVoiceMessage:
return YES;
default:
return NO;
}
}
- (void)setMaxTextViewWidth:(CGFloat)inMaxTextViewWidth
{
// Check change