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

This commit is contained in:
Sivin Varghese 2022-09-20 04:05:41 +05:30 committed by GitHub
parent 97583e410c
commit a773ad7d08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,7 +143,7 @@ export default {
registerUnreadEvents() { registerUnreadEvents() {
bus.$on(ON_AGENT_MESSAGE_RECEIVED, () => { bus.$on(ON_AGENT_MESSAGE_RECEIVED, () => {
const { name: routeName } = this.$route; const { name: routeName } = this.$route;
if (this.isWidgetOpen && routeName === 'messages') { if ((this.isWidgetOpen || !this.isIFrame) && routeName === 'messages') {
this.$store.dispatch('conversation/setUserLastSeen'); this.$store.dispatch('conversation/setUserLastSeen');
} }
this.setUnreadView(); this.setUnreadView();