Page MenuHomePhabricator

[native] Introduce getRelatedMessages to CommCoreModule
ClosedPublic

Authored by ashoat on Jul 14 2024, 6:12 PM.
Tags
None
Referenced Files
F3181244: D12739.id42272.diff
Fri, Nov 8, 5:55 AM
Unknown Object (File)
Fri, Oct 18, 10:24 PM
Unknown Object (File)
Oct 5 2024, 11:33 AM
Unknown Object (File)
Sep 25 2024, 7:55 PM
Unknown Object (File)
Sep 25 2024, 7:55 PM
Unknown Object (File)
Sep 25 2024, 7:55 PM
Unknown Object (File)
Sep 25 2024, 7:55 PM
Unknown Object (File)
Sep 25 2024, 7:55 PM
Subscribers
None

Details

Summary

This diff introduces the code on native to interface with our new getRelatedMessages API.

Depends on D12738

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

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

marcin added inline comments.
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
2616–2620 ↗(On Diff #42272)

This formatting looks strange. Did you run yarn clang-format-all? It doesn't get executed automatically during commit, Dev must execute it manually to achieve formatting.

This revision is now accepted and ready to land.Jul 15 2024, 2:58 AM
native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
2616–2620 ↗(On Diff #42272)

Sorry for the confusion - after talking to @kamil I found that this sentence:

It doesn't get executed automatically during commit, Dev must execute it manually to achieve formatting.

is only true if someone has commit hooks disabled.

native/cpp/CommonCpp/NativeModules/CommCoreModule.cpp
2616–2620 ↗(On Diff #42272)

I can confirm that running yarn clang-format-all yields no changes

ashoat retitled this revision from [native] Introduce getLatestMessageEdit to CommCoreModule to [native] Introduce getRelatedMessages to CommCoreModule.Jul 15 2024, 7:02 PM
ashoat edited the summary of this revision. (Show Details)
ashoat edited the test plan for this revision. (Show Details)
ashoat edited the test plan for this revision. (Show Details)

Rework into getRelatedMessages, which can be reused for rendering search results

ashoat retitled this revision from [native] Introduce getRelatedMessages to CommCoreModule to [native] Introduce getRelatedMessages to CommCoreModule.Jul 15 2024, 7:14 PM
ashoat edited the summary of this revision. (Show Details)