зеркало из https://github.com/nextcloud/talk-ios.git
Check if there are server capabilities before deleting account.
Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Родитель
02888c2393
Коммит
2b3fb2fa9a
|
@ -127,7 +127,9 @@
|
|||
ServerCapabilities *serverCapabilities = [ServerCapabilities objectsWithPredicate:query].firstObject;
|
||||
[realm beginWriteTransaction];
|
||||
[realm deleteObject:removeAccount];
|
||||
[realm deleteObject:serverCapabilities];
|
||||
if (serverCapabilities) {
|
||||
[realm deleteObject:serverCapabilities];
|
||||
}
|
||||
[realm commitWriteTransaction];
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче