diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-01-04 11:09:15 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-01-04 11:09:15 +0100 |
commit | ff7771520e9777932b5fd804c94cd990ac1bd26d (patch) | |
tree | 7f331a7d7474f9a809ea0e8b46afa49438e306d7 /src/main | |
parent | 6df66c6592e42e1dcbf515222bf3ab5b9178eb18 (diff) |
count muc participants correctly
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConversationsActivity.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationsActivity.java b/src/main/java/de/pixart/messenger/ui/ConversationsActivity.java index 824eef87c..400519ab3 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationsActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationsActivity.java @@ -791,10 +791,11 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio } } } else { - if (users.size() == 1) { + if (users.size() == 0) { absubtitle.setText(getString(R.string.one_participant)); } else { - absubtitle.setText(getString(R.string.more_participants, users.size())); + int size = users.size() + 1; + absubtitle.setText(getString(R.string.more_participants, size)); } } absubtitle.setSelected(true); |