feat: auto-mark managed group as seen on Eddy session #2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Doel
Markeer inkomende berichten in één specifieke beheergroep automatisch als gelezen op de
Eddy-sessie, zonder andere chats te beïnvloeden.Context
De groep
Dienst opvragen EdGPT-EBSis voor deEddy-sessie inhoudelijk niet relevant, maar moet wel handmatig zichtbaar blijven voor beheer. Ongelezen berichten stapelen zich nu op. De gewenste scope is daarom een automatische read-markering zodraEddyeen bericht uit deze groep ontvangt.Gewenst gedrag
Eddy.120363407613652082@g.us(Dienst opvragen EdGPT-EBS).sendSeenmag de webhookverwerking of de sessie niet laten falen.sendSeen-API vereist.Mogelijke implementatierichting
Voeg in de sessie-eventregistratie een specifieke, niet-blokkerende hook toe rond het bestaande
message-event:De bestaande webhook moet onafhankelijk doorgaan. Verifieer vóór implementatie de exacte eventvelden (
message.from, sessie-ID), de chat lookup en de bestaande WWeb-version signature.Acceptatiecriteria
Eddy→ chat wordt gelezen gemarkeerd.EdGpt→ geen extra automatische read-hook.Eddy→ geen automatische read-hook.sendSeen-fout → message-event/webhook blijft functioneren en fout wordt gelogd.Additional findings and expected direction:
WhatsApp Web marks a chat/group as read when the chat is opened through the normal Web UI. For this use case, a reliable solution may therefore avoid the unstable internal
sendSeenprimitives entirely:The target is specifically session
Eddyand group120363407613652082@g.us(Dienst opvragen EdGPT-EBS). Other sessions and chats must remain unaffected.Expected behavior:
sendSeenAPI need not change unless the helper is later exposed explicitly.Implementation direction:
sendSeenreplacement.This is a practical UI-based direction for the managed-group use case, not a claim that it replaces the general WhatsApp Web read-receipt API for every chat/version.