Depending on the protocol, we have a different order of operations when sending a message.
Depends on D14630
Differential D14631
[lib] Create a flag determining message side effects behavior Authored by tomek on Apr 30 2025, 2:54 PM.
Details Depending on the protocol, we have a different order of operations when sending a message. Depends on D14630 Tested sending text messages on web - made sure that the side effects are executed in thin and thick threads.
Diff Detail
Event TimelineComment Actions LGTM but I wonder if those side effects and deciding when to call them should be included in the protocol and handled in sendTextMessage(...) method. Then every protocol (dm/keyserver/other) has just "sendTextMessage" method and protocol decides when side effects should be performed. Also in useCreationSideEffectsFunc there are also conditionals threadTypeIsThick so the side effects can be different for different protocols. Comment Actions I think it is a good idea. Addressing it here might be inconvenient, and is something a little more complicated, so I created a task to track https://linear.app/comm/issue/ENG-10784/merge-sendtextmessage-with. |