[lib] Fetch older messages when showInMessagePreview rejects messages in local store
Summary:
This diff implements "Potential solution 3" described on Linear here.
Depends on D13830
Test Plan:
Tested in combination with the rest of the stack:
- Make sure membership operations (user joining / leaving) don't appear in MessagePreview
- Make sure reactions to the viewer's messages still appear in MessagePreview
- Make sure reactions to other user's messages don't appear in MessagePreview
- Test fresh login to thread with only one message in the last 14 days, which is a reaction to a non-viewer message. Make sure the reaction initially appears in MessagePreview, but then is replaced after more messages are fetched by the client
Reviewers: tomek
Reviewed By: tomek
Differential Revision: https://phab.comm.dev/D13831