Fix open group display name handling

This commit is contained in:
Niels Andriesse
2021-05-24 12:44:45 +10:00
parent d7afcd07f8
commit 38f50a6dda
2 changed files with 12 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ class Contact(val sessionID: String) {
// In open groups, where it's more likely that multiple users have the same name,
// we display a bit of the Session ID after a user's display name for added context.
this.name?.let {
return "${this.name}${this.sessionID.takeLast(8)}"
return "${this.name} (...${this.sessionID.takeLast(8)})"
}
return null
}