HomePhabricator
Diffusion Comm 21327693b3cc

[web][native] Extract common fetching logic

Description

[web][native] Extract common fetching logic

Summary:
This logic is the same on both platforms and can be reused. Later in the stack I'm going to introduce the logic for thick thread fetching to this hook.

https://linear.app/comm/issue/ENG-8706/modify-message-lists-to-call-the-new-function

Depends on D13142

Test Plan: Tested on both native and web whether threads with less than 20 messages are displayed correctly and fetching all the messages, in batches, works for longer threads.

Reviewers: kamil, inka

Reviewed By: kamil

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D13147

Details

Provenance
tomekAuthored on Aug 23 2024, 4:47 AM
Reviewer
kamil
Differential Revision
D13147: [web][native] Extract common fetching logic
Parents
rCOMMe8389432b37e: [web] Expose messages fetching function through the worker and sqlite-api
Branches
Unknown
Tags
Unknown