diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-06-20 22:30:21 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-06-20 22:30:21 +0200 |
commit | 81c0944245b84824f1ba76ce225225ea996f57c1 (patch) | |
tree | 2920b34f4be4c972d4b7f3e4aebe97d06b03471d /src/main/java/de/pixart/messenger/services | |
parent | 53f93ae996a8d7478132b1f655830cf065d91177 (diff) |
show own account in chatlist/contacts/conferences if you are in multi account mode
Diffstat (limited to 'src/main/java/de/pixart/messenger/services')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java index 0dc298fd6..539f89553 100644 --- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java +++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java @@ -168,6 +168,7 @@ import static de.pixart.messenger.ui.SettingsActivity.CHAT_STATES; import static de.pixart.messenger.ui.SettingsActivity.CONFIRM_MESSAGES; import static de.pixart.messenger.ui.SettingsActivity.ENABLE_MULTI_ACCOUNTS; import static de.pixart.messenger.ui.SettingsActivity.INDICATE_RECEIVED; +import static de.pixart.messenger.ui.SettingsActivity.SHOW_OWN_ACCOUNTS; public class XmppConnectionService extends Service { @@ -4021,6 +4022,10 @@ public class XmppConnectionService extends Service { return getBooleanPreference(ENABLE_MULTI_ACCOUNTS, R.bool.enable_multi_accounts); } + public boolean showOwnAccounts() { + return getBooleanPreference(SHOW_OWN_ACCOUNTS, R.bool.show_own_accounts); + } + public int unreadCount() { int count = 0; for (Conversation conversation : getConversations()) { |