set seen on msg reception

This commit is contained in:
Martti Malmi 2021-07-08 13:29:56 +03:00
parent 235fd9ce6c
commit efd2a73a17

View File

@ -369,6 +369,10 @@ function processMessage(chatId, msg, info) {
if (!info.selfAuthored && msg.timeObj > (chat.myLastSeenTime || -Infinity)) {
if (window.location.pathname !== '/chat/' + chatId || document.visibilityState !== 'visible') {
Notifications.changeChatUnseenCount(chatId, 1);
} else {
if (ourActivity === 'active') {
chat.setMyMsgsLastSeenTime();
}
}
}
if (!info.selfAuthored && msg.time > chat.theirMsgsLastSeenTime) {