This diff places the code responsible for local multimedia messages to setMessageStoreMessages action handling, since it is the only place we can do so, that we store messages in SQLite now.
Depends on D4508
Differential D4508
Filter local multimedia messages marcin on Jul 12 2022, 7:49 AM. Authored by Tags None Referenced Files
Details
This diff places the code responsible for local multimedia messages to setMessageStoreMessages action handling, since it is the only place we can do so, that we store messages in SQLite now. Depends on D4508 After this differential app is also expected to work in the same manner as before.
Diff Detail
Event TimelineComment Actions @atul should definitely take a look here since he was responsible for "flipping the switch", which I think was broken without this change Comment Actions Looks good! I was initially confused when I tried testing this locally because it appeared like local media messages were already removed by the time the setMessageStoreMessages handler was hit. After debugging for a bit (specifically processMessageStoreOperations(...) on C++ side to observe changes to SQLite store), I realized that D4517 wasn't included in the stack when I patched this diff... but everything worked after pulling in that commit. I also had trouble getting the debugger to "attach" to Hermes in time for this action to be handled in message-reducer. Ended up testing via console.log to make sure values were as expected at each point. I copied the values into a text file as I was working, so it should just take a few minutes to add basic tests for this action. I'll spend like 5-10 minutes to see if I can get basic tests working, otherwise I'll drop it.
|