From 56f836826afb1ceb8683f06f86bb149253a37ff9 Mon Sep 17 00:00:00 2001 From: 10G Meow <10gmeow@gmail.com> Date: Sun, 13 Mar 2022 12:29:34 +0200 Subject: [PATCH] input identity changing fixes --- src/components/profileInfoMixin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/profileInfoMixin.js b/src/components/profileInfoMixin.js index b93ba9a..02bd1e5 100644 --- a/src/components/profileInfoMixin.js +++ b/src/components/profileInfoMixin.js @@ -12,7 +12,7 @@ export default { if (!this.user) { return null; } - return (this.user.displayName || this.user.userId); + return this.user.displayName; }, set(newValue) { this.user.displayName = newValue @@ -46,7 +46,7 @@ export default { }) }, updateDisplayName(name) { - this.$matrix.matrixClient.setDisplayName(name); + this.$matrix.matrixClient.setDisplayName(name || this.user.userId); } } } \ No newline at end of file