mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-15 14:12:21 +01:00
Automatically activate show own account when adding further accounts
This commit is contained in:
parent
815970cde9
commit
bc14aba87d
1 changed files with 6 additions and 0 deletions
|
@ -3142,6 +3142,12 @@ public class XmppConnectionService extends Service {
|
|||
CallIntegrationConnectionService.togglePhoneAccountAsync(this, account);
|
||||
}
|
||||
this.accounts.add(account);
|
||||
// Activate show own account name when there is more than one account
|
||||
if (accounts.size() > 1) {
|
||||
final var editor = getPreferences().edit();
|
||||
editor.putBoolean("show_own_accounts", true).apply();
|
||||
editor.apply();
|
||||
}
|
||||
this.reconnectAccountInBackground(account);
|
||||
updateAccountUi();
|
||||
syncEnabledAccountSetting();
|
||||
|
|
Loading…
Reference in a new issue