Changes according to comments.

Signed-off-by: Aleksandra Lazarevic <aleksandra@nextcloud.com>
This commit is contained in:
Aleksandra 2021-11-16 17:57:40 +01:00
Родитель 26c1f11f2c
Коммит ddc95a266c
3 изменённых файлов: 7 добавлений и 19 удалений

Просмотреть файл

@ -89,11 +89,6 @@ NSString * const kMinimumRequiredTalkCapability = kCapabilitySystemMessages;
configuration.schemaVersion = kTalkDatabaseSchemaVersion;
configuration.migrationBlock = ^(RLMMigration *migration, uint64_t oldSchemaVersion) {
// At the very minimum we need to update the version with an empty block to indicate that the schema has been upgraded (automatically) by Realm
if (oldSchemaVersion < kTalkDatabaseSchemaVersion) {
// Nothing to do!
// Realm will automatically detect new properties and removed properties
// And will update the schema on disk automatically
}
};
// Tell Realm to use this new configuration object for the default Realm

Просмотреть файл

@ -42,5 +42,5 @@ extern CGFloat const kRoomTableCellHeight;
- (void)setUnreadMessages:(NSInteger)number mentioned:(BOOL)mentioned groupMentioned:(BOOL)groupMentioned;
- (void)setUserStatus:(NSString *)userStatus;
-(void)setUserStatusIcon:(NSString *)userStatusIcon;
- (void)setUserStatusIcon:(NSString *)userStatusIcon;
@end

Просмотреть файл

@ -1141,20 +1141,13 @@ API_AVAILABLE(ios(11.0)){
}
//Show User Status
if (room.type == kNCRoomTypeOneToOne) {
if ([room.status length] != 0) {
if (![room.status isEqual:@"dnd"]) {
if ([room.statusIcon length] != 0) {
[cell setUserStatusIcon:room.statusIcon];
}
else {
[cell setUserStatus:room.status];
}
}else {
[cell setUserStatus:room.status];
}
}
if (room.type == kNCRoomTypeOneToOne && [room.status length] != 0) {
if (![room.status isEqual:@"dnd"] && [room.statusIcon length] != 0) {
[cell setUserStatusIcon:room.statusIcon];
} else {
[cell setUserStatus:room.status];
}
}
// Set objectType image
if ([room.objectType isEqualToString:NCRoomObjectTypeFile]) {