don't show identifier if already shown in name
This commit is contained in:
parent
4ffefa0473
commit
7f460caf6b
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user