mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-30 13:35:18 +00:00
Show actual open group member count
This commit is contained in:
parent
a2a63e0ab4
commit
a6b9012aec
@ -467,7 +467,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
|
||||
LokiPublicChat publicChat = DatabaseFactory.getLokiThreadDatabase(this).getPublicChat(threadId);
|
||||
if (publicChat != null) {
|
||||
ApplicationContext.getInstance(this).getLokiPublicChatAPI().getUserCount(publicChat.getChannel(), publicChat.getServer()).success(integer -> {
|
||||
ApplicationContext.getInstance(this).getLokiPublicChatAPI().getChannelInfo(publicChat.getChannel(), publicChat.getServer()).success( displayName -> {
|
||||
updateSubtitleTextView();
|
||||
return Unit.INSTANCE;
|
||||
});
|
||||
@ -3109,11 +3109,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
||||
if (publicChat != null) {
|
||||
Integer userCount = DatabaseFactory.getLokiAPIDatabase(this).getUserCount(publicChat.getChannel(), publicChat.getServer());
|
||||
if (userCount == null) { userCount = 0; }
|
||||
if (userCount >= 200) {
|
||||
subtitleTextView.setText("200+ members");
|
||||
} else {
|
||||
subtitleTextView.setText(userCount + " members");
|
||||
}
|
||||
subtitleTextView.setText(userCount + " members");
|
||||
} else if (PublicKeyValidation.isValid(recipient.getAddress().toString())) {
|
||||
subtitleTextView.setText(recipient.getAddress().toString());
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user