mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Don’t try to set notification level if we can’t do it
This commit is contained in:
parent
d492e8040b
commit
238cab78b1
@ -70,6 +70,7 @@ public class DatabaseStorageModule implements StorageModule {
|
||||
if (!key.equals("message_notification_level")) {
|
||||
arbitraryStorageUtils.storeStorageSetting(accountIdentifier, key, value, conversationToken);
|
||||
} else {
|
||||
if (conversationUser.hasSpreedCapabilityWithName("notification-levels")) {
|
||||
int intValue;
|
||||
switch (value) {
|
||||
case "never":
|
||||
@ -111,6 +112,7 @@ public class DatabaseStorageModule implements StorageModule {
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void saveInt(String key, int value) {
|
||||
|
Loading…
Reference in New Issue
Block a user