diff --git a/changelog.d/fix-chat-post.fix b/changelog.d/fix-chat-post.fix new file mode 100644 index 000000000..60480a1c0 --- /dev/null +++ b/changelog.d/fix-chat-post.fix @@ -0,0 +1 @@ +Fix error dialog when posting in chat diff --git a/src/components/chat_view/chat_view.js b/src/components/chat_view/chat_view.js index 16b2ae1d7..a93a86ba5 100644 --- a/src/components/chat_view/chat_view.js +++ b/src/components/chat_view/chat_view.js @@ -538,11 +538,14 @@ const Chat = { // Event handlers onPosted(data) { - this.explicitReplyStatus = null - this.$router.push({ - name: 'conversation2', - params: { statusId: data.id }, - }) + // only conversation poster has the returned data + if (this.isConversation) { + this.explicitReplyStatus = null + this.$router.push({ + name: 'conversation2', + params: { statusId: data.id }, + }) + } }, handleVisibilityChange() { this.$nextTick(() => {