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

View file

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