-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
cc116bc
commit 7c26aa8
Showing
2 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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