From a773ad7d086202c0ee293c3a6b653e491d25cf8c Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Tue, 20 Sep 2022 04:05:41 +0530 Subject: [PATCH] fix: Read status not updated in widget popout mode (#5454) --- app/javascript/widget/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/widget/App.vue b/app/javascript/widget/App.vue index 544fa62fc..17b610f09 100755 --- a/app/javascript/widget/App.vue +++ b/app/javascript/widget/App.vue @@ -143,7 +143,7 @@ export default { registerUnreadEvents() { bus.$on(ON_AGENT_MESSAGE_RECEIVED, () => { const { name: routeName } = this.$route; - if (this.isWidgetOpen && routeName === 'messages') { + if ((this.isWidgetOpen || !this.isIFrame) && routeName === 'messages') { this.$store.dispatch('conversation/setUserLastSeen'); } this.setUnreadView();