Fix: уведомления из заглушённых чатов всё равно пересылались - #1
Draft
erop39 wants to merge 3 commits into
Draft
Conversation
Mute state in Max is stored in settings.chats, but on connect we only loaded the chats array from AUTH_SNAPSHOT. Chats muted via «без звука» were therefore unknown until a live NOTIF_CONFIG arrived. - Load mute state from both chats[] and settings.chats on snapshot - Raise chatsCount from 10 to 40 and request full sync params - Handle alternate NOTIF_CHAT / NOTIF_CONFIG payload shapes - Add integration tests for skip-muted filtering Co-authored-by: eGoR <erop39@users.noreply.github.com>
AUTH_SNAPSHOT often does not include settings.chats with dontDisturbUntil. NOTIF_CONFIG (134) only sends a config hash, not mute data. - Request settings with opcode 22 using snapshot hash after connect - Refresh mute state when NOTIF_CONFIG arrives - Warn in logs when mute list is still empty after CONFIG fetch Co-authored-by: eGoR <erop39@users.noreply.github.com>
When SKIP_MUTED=true, first-connect message includes: «🔇 из них без звука: N» Co-authored-by: eGoR <erop39@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Изменения
settings.chats+ запрос CONFIG после логинаNOTIF_CONFIGSKIP_MUTED=true:✅ Max: подключён | чатов: 32 | 🔇 из них без звука: 7