From 5fb087d443cb84b2b4af969a842cbaf2cf6e60e0 Mon Sep 17 00:00:00 2001 From: Arne Date: Fri, 3 Jan 2025 14:56:05 +0100 Subject: [PATCH] Automatically activate show own account when adding further accounts --- .../siacs/conversations/services/XmppConnectionService.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index 32fa12e80..178898ae4 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -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();