mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-20 13:05:16 +00:00
fix: Read status not updated in widget popout mode (#5454)
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user