mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
MXKRoomBubbleCellData: Add convenient isAttachment property.
This commit is contained in:
@@ -724,6 +724,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
|
||||
|
||||
Reference in New Issue
Block a user