diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-05-17 10:52:05 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-05-17 10:52:05 +0300 |
commit | ecf3d09d547aea361566774f71cd1b3904f0d27d (patch) | |
tree | c885dbeebe0a663d1f529d69aebad03a7e26da35 /src | |
parent | d6ef808c226f0bdd316a36ed54f90813e707c309 (diff) |
Fix text format when closing the composer modal
When plain editing mode is selected, rescheduling an outbox message sent
the text object to the server, while that data structure is only known
on the front-end. HTML had already been handled correctly, only plain
missed the conversion to string.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src')
-rw-r--r-- | src/store/actions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/store/actions.js b/src/store/actions.js index 77de3ef08..02e4412f3 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -385,7 +385,7 @@ export default { id: message.data.id, message: { ...message.data, - body: message.data.isHtml ? body.value : toPlain(body), + body: message.data.isHtml ? body.value : toPlain(body).value, sendAt: message.options.originalSendAt, }, }) |