HomePhabricator
Diffusion Comm 7c26aa8714c5

Fix DM activity handler not to send unnecessary read status update

Description

Fix DM activity handler not to send unnecessary read status update

Summary: This differential prevents DM activity handler from spamming unread status unpdates by sending updates only for threads that are unread when we enter them and using debouncing when receiving messages to currently active thread.

Test Plan:

  1. Add console log to each portion of sent dm's
  2. Ensure that when entering thick thread updates are sent once only if the thread was unread.
  3. Ensuure that after receiving stream of messages to thick thread, unread updates are sent only once 5 seconds after the last message.

Reviewers: ashoat, tomek, kamil

Reviewed By: tomek

Differential Revision: https://phab.comm.dev/D13383

Details

Provenance
marcinAuthored on Sep 18 2024, 7:28 AM
Reviewer
tomek
Differential Revision
D13383: Fix DM activity handler not to send unnecessary read status update
Parents
rCOMMcc116bc456de: Pass pairs of message data and raw message info to notif generation code
Branches
Loading...
Tags
Loading...