Merge branch '192-input-changing-identity-fixes' into 'dev'

input identity changing fixes

Closes #192

See merge request keanuapp/keanuapp-weblite!61
This commit is contained in:
N Pex 2022-03-21 07:53:13 +00:00
commit 94ae79c892

View file

@ -12,7 +12,7 @@ export default {
if (!this.user) { if (!this.user) {
return null; return null;
} }
return (this.user.displayName || this.user.userId); return this.user.displayName;
}, },
set(newValue) { set(newValue) {
this.user.displayName = newValue this.user.displayName = newValue
@ -46,7 +46,7 @@ export default {
}) })
}, },
updateDisplayName(name) { updateDisplayName(name) {
this.$matrix.matrixClient.setDisplayName(name); this.$matrix.matrixClient.setDisplayName(name || this.user.userId);
} }
} }
} }