Page MenuHomePhabricator

[lib][web][native] Refactor actions in user-actions.js pt.1
ClosedPublic

Authored by inka on Oct 16 2023, 5:31 AM.
Tags
None
Referenced Files
F3535521: D9501.id32764.diff
Wed, Dec 25, 3:54 PM
F3535520: D9501.id32636.diff
Wed, Dec 25, 3:54 PM
F3535519: D9501.id32035.diff
Wed, Dec 25, 3:54 PM
F3535482: D9501.diff
Wed, Dec 25, 3:42 PM
Unknown Object (File)
Fri, Dec 20, 6:07 AM
Unknown Object (File)
Mon, Dec 16, 12:49 AM
Unknown Object (File)
Sun, Dec 15, 12:48 AM
Unknown Object (File)
Wed, Dec 11, 2:13 AM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-4681/create-action-objects-for-all-actions
Some more actions from this file will be updated in the next diff

Test Plan

Tested that the actions work as expected

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Oct 16 2023, 5:50 AM
michal added inline comments.
lib/actions/user-actions.js
295–306 ↗(On Diff #32035)

We will probably have to think how the settings will work in multi-keyserver world but this should be fine for now (I think we are currently only storing which threads are in the background).

This revision is now accepted and ready to land.Oct 16 2023, 7:29 AM
lib/actions/user-actions.js
295–306 ↗(On Diff #32035)

Is this "user settings" just the default notif settings? If so I think we'll want this to:

  1. Be synced between clients (Olm messages through Tunnelbroker)
  2. Be synced to all keyservers you're part of
  3. Eventually when we launch DMs, we'll want it to be synced to all peers as well

Maybe we can add a Linear task under ENG-4138? cc @tomek, who has been investigating this recently

lib/actions/user-actions.js
295–306 ↗(On Diff #32035)

Wondering if we would like to have different settings for different keyservers - sounds quite useful. Regardless, it makes sense to have a task for it - @inka could you create one?

lib/actions/user-actions.js
295–306 ↗(On Diff #32035)

Sure, here is the task: ENG-5650