Page MenuHomePhabricator

[keyserver] Refactor latest message determination logic
ClosedPublic

Authored by ashoat on Feb 11 2025, 12:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 19, 9:22 AM
Unknown Object (File)
Sat, Apr 19, 6:45 AM
Unknown Object (File)
Fri, Apr 18, 9:16 PM
Unknown Object (File)
Fri, Apr 18, 10:32 AM
Unknown Object (File)
Wed, Apr 9, 12:13 PM
Unknown Object (File)
Feb 27 2025, 5:50 AM
Unknown Object (File)
Feb 27 2025, 12:40 AM
Unknown Object (File)
Feb 24 2025, 3:19 AM
Subscribers
None

Details

Summary

This diff is a no-op; just refactoring things to prepare for later diffs.

  1. Use the new messages returned from fetchMessageNotifyType instead of threadsToMessageIndices and messageInfos. In a later diff, this has the benefit of including messageNotifyType
  2. Get rid of flattenLatestMessagesPerUser by simplifying logic
  3. Simplify types

Depends on D14335

Test Plan

Tested in combination with later diffs, to confirm that it's possible for some message types to not set a thread to unread

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage