SHA256
Поправил пуши для личных сообщений
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { AuthService } from './services/auth-service.js';
|
||||
import { closeDmNotification } from './services/dm-push-notifications.js';
|
||||
import { listStoredMessages, putStoredMessage, deleteStoredMessage, clearStoredMessages } from './services/message-store.js';
|
||||
import { rpcEndpointFromShineHttp, setSolanaCluster } from './services/solana-rpc-gateway.js';
|
||||
import {
|
||||
@@ -956,6 +957,11 @@ export function markChatRead(chatId) {
|
||||
changed += 1;
|
||||
}
|
||||
});
|
||||
// Вызывается только когда чат действительно просматривается; даже если локальный счётчик уже 0,
|
||||
// надо снять системное уведомление, полученное до открытия страницы.
|
||||
if (state.session?.login && normalizedChatId) {
|
||||
void closeDmNotification(state.session.login, normalizedChatId);
|
||||
}
|
||||
return changed;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user