Now that we're exposing getRelatedMessages from SQLite instead of useGetLatestMessageEdit, we need some business logic on the JS side to construct the "latest message edit". We do this by swapping in the text of the latest edit, similar to how the equivalent code in keyserver works.
This diff replaces D12762.
Depends on D12740