[lib] introduced rawMessageInfoFromServerDBRow function to reaction message spec
Summary:
introduced rawMessageInfoFromServerDBRow function to reaction message spec. rawMessageInfoFromServerDBRow does some basic parsing of the message content from the db and returns the information necessary for a RawReactionMessageInfo object
UPDATE
Got some feedback to grab targetMessageID directly from the messages table instead of from messageContent. To do this successfully, I had to modify some of the message-fetchers queries to include targetMessageID in the query selection.
Depends on D5690
Linear Task: ENG-2245
Test Plan:
Ran web and mobile app locally and nothing crashes/there are no regressions. More testing of this function will come in subsequent diffs.
UPDATE
To test that the queries were returning the correct information, I logged out row.targetMessageID.toString() and got this result, which matched what I found in the database:
(also note that the message content no longer has targetMessageID)
Reviewers: atul, tomek, rohan
Reviewed By: atul, tomek
Subscribers: ashoat, tomek, atul
Differential Revision: https://phab.comm.dev/D5803