зеркало из https://github.com/nextcloud/talk-ios.git
Get objectType and objectId for rooms.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Родитель
6fce7188bb
Коммит
f229e5fb05
|
@ -44,6 +44,8 @@ typedef enum NCRoomNotificationLevel {
|
|||
@property (nonatomic, strong) NCChatMessage *lastMessage;
|
||||
@property (nonatomic, assign) BOOL isFavorite;
|
||||
@property (nonatomic, assign) NCRoomNotificationLevel notificationLevel;
|
||||
@property (nonatomic, copy) NSString *objectType;
|
||||
@property (nonatomic, copy) NSString *objectId;
|
||||
|
||||
+ (instancetype)roomWithDictionary:(NSDictionary *)roomDict;
|
||||
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
room.lastMessage = [NCChatMessage messageWithDictionary:[roomDict objectForKey:@"lastMessage"]];
|
||||
room.isFavorite = [[roomDict objectForKey:@"isFavorite"] boolValue];
|
||||
room.notificationLevel = (NCRoomNotificationLevel)[[roomDict objectForKey:@"notificationLevel"] integerValue];
|
||||
room.objectType = [roomDict objectForKey:@"objectType"];
|
||||
room.objectId = [roomDict objectForKey:@"objectId"];
|
||||
|
||||
id name = [roomDict objectForKey:@"name"];
|
||||
if ([name isKindOfClass:[NSString class]]) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче