mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
28281ccfdd
The images for group avatars are stored directly in the datbase, which is fine since they are small. But then there's no reason to have them lingering on the filesystem. Also removed the unused group associatedAttachmentId property. // FREEBIE
26 lines
769 B
Objective-C
26 lines
769 B
Objective-C
// Created by Frederic Jacobs.
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
|
|
#import "TSYapDatabaseObject.h"
|
|
|
|
@interface TSGroupModel : TSYapDatabaseObject
|
|
|
|
@property (nonatomic, strong) NSMutableArray *groupMemberIds;
|
|
@property (nonatomic, strong) NSString *groupName;
|
|
@property (nonatomic, strong) NSData *groupId;
|
|
|
|
#if TARGET_OS_IOS
|
|
@property (nonatomic, strong) UIImage *groupImage;
|
|
|
|
- (instancetype)initWithTitle:(NSString *)title
|
|
memberIds:(NSMutableArray *)memberIds
|
|
image:(UIImage *)image
|
|
groupId:(NSData *)groupId;
|
|
|
|
- (BOOL)isEqual:(id)other;
|
|
- (BOOL)isEqualToGroupModel:(TSGroupModel *)model;
|
|
- (NSString *)getInfoStringAboutUpdateTo:(TSGroupModel *)model;
|
|
#endif
|
|
|
|
|
|
@end
|