Fix undefined/unset scope in account properties

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-01-11 10:15:06 +01:00
parent 7484abb6c0
commit 3c84570901
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -152,6 +152,7 @@ class AccountProperty implements IAccountProperty {
switch ($scope) {
case IAccountManager::VISIBILITY_PRIVATE:
case '':
return IAccountManager::SCOPE_LOCAL;
case IAccountManager::VISIBILITY_CONTACTS_ONLY:
return IAccountManager::SCOPE_FEDERATED;