aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-01-04 11:09:15 +0100
committerChristian Schneppe <christian@pix-art.de>2019-01-04 11:09:15 +0100
commitff7771520e9777932b5fd804c94cd990ac1bd26d (patch)
tree7f331a7d7474f9a809ea0e8b46afa49438e306d7 /src/main
parent6df66c6592e42e1dcbf515222bf3ab5b9178eb18 (diff)
count muc participants correctly
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationsActivity.java5
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);