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)
Feb 27 2025, 5:50 AM
Unknown Object (File)
Feb 27 2025, 12:40 AM
Unknown Object (File)
Feb 24 2025, 3:19 AM
Unknown Object (File)
Feb 23 2025, 2:33 AM
Unknown Object (File)
Feb 21 2025, 1:13 AM
Unknown Object (File)
Feb 20 2025, 7:57 AM
Unknown Object (File)
Feb 20 2025, 7:20 AM
Unknown Object (File)
Feb 19 2025, 3:13 PM
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
Lint Not Applicable
Unit
Tests Not Applicable