don't show identifier if already shown in name

This commit is contained in:
Bruno Windels 2020-12-03 17:31:24 +01:00
parent 4ffefa0473
commit 7f460caf6b
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ export class PreviewViewModel extends ViewModel {
this.memberCount = publicRoom?.num_joined_members;
this.topic = publicRoom?.topic;
this.identifier = publicRoom?.canonical_alias || link.identifier;
if (this.identifier === this.name) {
this.identifier = null;
}
}
_setNoPreview(link) {