зеркало из https://github.com/nextcloud/talk-ios.git
Use files account alias if available.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Родитель
6d0d991c1d
Коммит
165e09b12f
|
@ -278,7 +278,7 @@
|
|||
NSMutableArray *importedAccounts = [NSMutableArray new];
|
||||
for (NKDataAccountFile *filesAccount in _importedFilesAccount) {
|
||||
DetailedOption *option = [[DetailedOption alloc] init];
|
||||
option.title = filesAccount.user;
|
||||
option.title = (!filesAccount.alias || [filesAccount.alias isEqualToString:@""]) ? filesAccount.user : filesAccount.alias;
|
||||
option.subtitle = filesAccount.url;
|
||||
NSData *imageData = [NSData dataWithContentsOfURL:[NSURL fileURLWithPath:filesAccount.avatar]];
|
||||
option.image = [UIImage imageWithData:imageData];
|
||||
|
|
Загрузка…
Ссылка в новой задаче