Self-repairing message counter

This commit is contained in:
Fedor Indutny 2021-09-15 11:45:22 -07:00 committed by GitHub
parent 5780c3d4b8
commit 3f7957c20d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 81 additions and 5 deletions

View file

@ -277,6 +277,8 @@ const dataInterface: ClientInterface = {
processGroupCallRingCancelation,
cleanExpiredGroupCallRings,
getMaxMessageCounter,
getStatisticsForLogging,
// Test-only
@ -1656,6 +1658,10 @@ async function updateAllConversationColors(
);
}
function getMaxMessageCounter(): Promise<number | undefined> {
return channels.getMaxMessageCounter();
}
function getStatisticsForLogging(): Promise<Record<string, string>> {
return channels.getStatisticsForLogging();
}