When a user performs an action, we generate an operation that is used to update Redux, send DM messages, and send the notifs. Updating Redux happens first. Generating notifs requires access to the thread. These cause a problem when leaving a thread, which might result in the thread being deleted from the store, making us unable to send the notifs.
Notif sending code needs threads for two main reasons: to determine the recipients and to create a notification text.
The solution is to pass a thread info inside notifs creation data so that we can use it instead of selecting from the store.
https://linear.app/comm/issue/ENG-9823/fix-sending-notifs-about-leaving-a-thick-thread
Depends on D13845