input identity changing fixes

This commit is contained in:
10G Meow 2022-03-13 12:29:34 +02:00
parent cebdc732bf
commit 56f836826a

View file

@ -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);
}
}
}