diff options
Diffstat (limited to 'src/main/java/de/pixart/messenger/entities/Conversation.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/entities/Conversation.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/entities/Conversation.java b/src/main/java/de/pixart/messenger/entities/Conversation.java index 082877ef7..fac28056f 100644 --- a/src/main/java/de/pixart/messenger/entities/Conversation.java +++ b/src/main/java/de/pixart/messenger/entities/Conversation.java @@ -515,6 +515,14 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl } } + public int getNumberOfParticipants() { + if (getMode() == MODE_MULTI) { + return getMucOptions().NumberOfUsers(); + } else { + return 0; + } + } + public String getAccountUuid() { return this.accountUuid; } |