fix: Read status not updated in widget popout mode (#5454)

This commit is contained in:
Sivin Varghese
2022-09-19 15:35:41 -07:00
committed by GitHub
parent 97583e410c
commit a773ad7d08
+1 -1
View File
@@ -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();