File tree 1 file changed +6
-1
lines changed
src/components/messages/chat
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ import { parseMessage, parseConversation } from 'js/messages';
66
66
import { modalsState } from ' js/modals' ;
67
67
import vkapi from ' js/vkapi' ;
68
68
import store from ' js/store' ;
69
+ import router from ' js/router' ;
69
70
70
71
import Icon from ' ../../UI/Icon.vue' ;
71
72
import Scrolly from ' ../../UI/Scrolly.vue' ;
@@ -601,7 +602,11 @@ export default {
601
602
// Reading messages ===================================
602
603
603
604
const checkReadMessages = callWithDelay (() => {
604
- if (store .getters [' settings/settings' ].notRead || ! currentWindow .isFocused ()) {
605
+ if (
606
+ store .getters [' settings/settings' ].notRead ||
607
+ ! currentWindow .isFocused () ||
608
+ + router .currentRoute .value .params .id !== props .peer_id
609
+ ) {
605
610
return ;
606
611
}
607
612
You can’t perform that action at this time.
0 commit comments