diff options
author | Marco Ambrosini <marcoambrosini@pm.me> | 2021-07-19 16:51:09 +0300 |
---|---|---|
committer | Marco Ambrosini <marcoambrosini@pm.me> | 2021-07-19 16:51:09 +0300 |
commit | a46a07b7a34e33655d2a4108afbdc999e180327c (patch) | |
tree | 72bfc75afa811a3b5d620e409c9cb9ca8866d3d4 /src/store | |
parent | f4f891ad3745f864545d07fb6491257977747e27 (diff) |
Move forwarding logic and template into a separate component
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/messagesStore.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/store/messagesStore.js b/src/store/messagesStore.js index f0c634f7a..688fc4e01 100644 --- a/src/store/messagesStore.js +++ b/src/store/messagesStore.js @@ -886,11 +886,8 @@ const actions = { */ async forwardMessage(context, { token, message }) { const messageToBeForwarded = cloneDeep(message) - console.debug(message, messageToBeForwarded) - messageToBeForwarded.token = token try { - console.debug(messageToBeForwarded) - postNewMessage(messageToBeForwarded) + await postNewMessage(messageToBeForwarded) } catch (error) { console.error('Error while forwarding message') showError(t('spreed', 'Error while forwarding message')) |