HomePhabricator
Diffusion Comm ae2fd4b4f144

[SQLite] Introduce getRelatedMessages

Description

[SQLite] Introduce getRelatedMessages

Summary:
I'm modelling this stack after @kamil's recent one (see D12080) that introduced functions to SQLiteAPI. First I'm introducing the shared SQLite C++ code, and then I will introduce the layers on native and web that will interact with it. This diff also contains some web-specific customizations necessary on the SQLite C++ code.

This query will be used for:

  1. Querying for a sidebar source's latest edit at sidebar creation time (ENG-8788)
  2. Querying for a messages edits and reactions for search results (ENG-87890)

Test Plan:

  1. In combination with later diffs, I tested a patch on both native and web that hit getRelatedMessages with a specific message ID and confirmed that it returned the message
  2. I tested a message ID that did not exist and confirmed I got undefined back

Reviewers: kamil, tomek, marcin

Reviewed By: marcin

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

Details

Provenance
ashoatAuthored on Jul 12 2024, 10:31 AM
Reviewer
marcin
Differential Revision
D12737: [SQLite] Introduce getRelatedMessages
Parents
rCOMMdd228baabee8: [SQLite] Factor out SQLiteQueryExecutor::processMessagesResults
Branches
Unknown
Tags
Unknown