From aef3b04aa58e7dba8f184a8d54308ada24bf3f1a Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Wed, 20 Nov 2019 00:04:32 +0530 Subject: [PATCH] [Bug] Remove markSeen, toggleTyping calls for WebWidget channels (#225) --- .../dashboard/components/widgets/conversation/ReplyBox.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue index d2038c6e7..e535a16b9 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ReplyBox.vue @@ -215,7 +215,7 @@ export default { this.toggleTyping('on'); }, markSeen() { - if (this.channelType !== 'Channel::FacebookPage') { + if (this.channelType === 'Channel::FacebookPage') { this.$store.dispatch('markSeen', { inboxId: this.currentChat.inbox_id, contactId: this.currentChat.meta.sender.id, @@ -224,7 +224,7 @@ export default { }, toggleTyping(status) { - if (this.channelType !== 'Channel::FacebookPage') { + if (this.channelType === 'Channel::FacebookPage') { this.$store.dispatch('toggleTyping', { status, inboxId: this.currentChat.inbox_id,