diff --git a/src/preview/PreviewViewModel.js b/src/preview/PreviewViewModel.js index 3f90daa..3be8b11 100644 --- a/src/preview/PreviewViewModel.js +++ b/src/preview/PreviewViewModel.js @@ -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) {