Skip to content

Commit fd2158b

Browse files
committed
fix: сообщения автоматически читались во всех ранее открытых беседах
1 parent 487d0b1 commit fd2158b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: src/components/messages/chat/List.vue

+6-1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ import { parseMessage, parseConversation } from 'js/messages';
6666
import { modalsState } from 'js/modals';
6767
import vkapi from 'js/vkapi';
6868
import store from 'js/store';
69+
import router from 'js/router';
6970
7071
import Icon from '../../UI/Icon.vue';
7172
import Scrolly from '../../UI/Scrolly.vue';
@@ -601,7 +602,11 @@ export default {
601602
// Reading messages ===================================
602603
603604
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+
) {
605610
return;
606611
}
607612

0 commit comments

Comments
 (0)