Page MenuHomePhabricator

[lib] Simplify useGetLastUpdatedTimes to use RawMessageInfo
ClosedPublic

Authored by ashoat on Feb 25 2025, 12:19 AM.
Tags
None
Referenced Files
F6068797: D14399.diff
Sun, Apr 20, 12:40 PM
Unknown Object (File)
Mon, Apr 14, 3:41 AM
Unknown Object (File)
Sun, Apr 6, 12:03 PM
Unknown Object (File)
Sun, Apr 6, 6:33 AM
Unknown Object (File)
Sat, Apr 5, 10:18 PM
Unknown Object (File)
Sat, Apr 5, 11:47 AM
Unknown Object (File)
Thu, Mar 27, 8:06 AM
Unknown Object (File)
Mar 20 2025, 8:03 AM
Subscribers
None

Details

Summary

Previously we have two different callsites here, one that passed in RawMessageInfo and one that passed in MessageInfo.

There's no reason to maintain the behavior of passing in MessageInfo. It simplifies the code to standardize on RawMessageInfo, and also helps avoid unnecessary computation.

Test Plan

I used this patch that adds a bunch of logs and ran a Release build of the iOS app pointed at production on my physical iOS device. I confirmed that the logs indicated a limited (minimal) amount of fetches for last updated time and MessagePreview, and that things generally looked okay in the app

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable