fix: Read status not updated in widget popout mode (#5454)
This commit is contained in:
parent
97583e410c
commit
a773ad7d08
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue