mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-09-19 17:46:33 +00:00
set seen on msg reception
This commit is contained in:
parent
235fd9ce6c
commit
efd2a73a17
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user