Skip to content
Snippets Groups Projects
Unverified Commit f7e17060 authored by Vincent Petry's avatar Vincent Petry
Browse files

Fix status clearing with initial empty value


When selecting an emoji but not specifying a message, the internal
message value was null which caused a server validation error on
sending.

This fixes the SetStatusModal to always work with an empty string
upfront, as this is the value the field would have if edited and cleared
manually.

Signed-off-by: default avatarVincent Petry <vincent@nextcloud.com>
parent 547c9dbd
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -98,7 +98,7 @@ export default {
return {
clearAt: null,
icon: null,
message: null,
message: '',
statuses: getAllStatusOptions(),
}
},
......@@ -119,7 +119,7 @@ export default {
mounted() {
this.messageId = this.$store.state.userStatus.messageId
this.icon = this.$store.state.userStatus.icon
this.message = this.$store.state.userStatus.message
this.message = this.$store.state.userStatus.message || ''
if (this.$store.state.userStatus.clearAt !== null) {
this.clearAt = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment