Fix: Editor would not open "delete_message".

Fix: Clear status if empty string given.
This commit is contained in:
Paul
2021-06-24 17:09:34 +01:00
parent 1aa2b1226a
commit d2904f57ab
2 changed files with 4 additions and 3 deletions

View File

@@ -119,7 +119,7 @@ export function SpecialInputModal(props: SpecialProps) {
client.users.editUser({
status: {
...client.user?.status,
text
text: text.trim().length > 0 ? text : undefined
}
})
}