mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix issues in media gallery cells.
This commit is contained in:
parent
f45693ec34
commit
5aa6467d20
2 changed files with 2 additions and 2 deletions
|
@ -809,7 +809,7 @@ const UIDataDetectorTypes kOWSAllowedDataDetectorTypes
|
|||
- (UIView *)loadViewForMedia
|
||||
{
|
||||
OWSAssertDebug(self.attachmentStream);
|
||||
OWSAssertDebug([self.attachmentStream isImage]);
|
||||
OWSAssertDebug([self.attachmentStream isVisualMedia]);
|
||||
|
||||
ConversationMediaView *mediaView =
|
||||
[[ConversationMediaView alloc] initWithMediaCache:self.cellMediaCache attachment:self.attachmentStream];
|
||||
|
|
|
@ -217,7 +217,7 @@ static const NSUInteger OWSMessageSchemaVersion = 4;
|
|||
- (BOOL)isMediaGalleryWithTransaction:(YapDatabaseReadTransaction *)transaction
|
||||
{
|
||||
NSArray<TSAttachment *> *attachments = [self attachmentsWithTransaction:transaction];
|
||||
if (attachments.count < 1) {
|
||||
if (attachments.count < 2) {
|
||||
return NO;
|
||||
}
|
||||
for (TSAttachment *attachment in attachments) {
|
||||
|
|
Loading…
Reference in a new issue