HomePhabricator
Diffusion Comm fc6d8cf210c8

[lib] refactor connection-related actions in `keyserver-reducer` to ops

Description

[lib] refactor connection-related actions in keyserver-reducer to ops

Summary:
Convert logic to ops approach.

Depends on D10770

Test Plan:
This is not that easy to test, and this sie basically copy-pasting approach from rest of the stack so this time just carefully reading the code.

EDIT: tested by dispatching following from redux dev-tools:

{
  type: 'SET_LATE_RESPONSE',
  payload: { messageID: '256|5', isLate: true, keyserverID: '256' }
}
{
  type: 'UPDATE_DISCONNECTED_BAR',
  payload: { visible: 'true', keyserverID: '256' }
}
{
  type: 'SET_CONNECTION_ISSUE',
  payload: { connectionIssue: null, keyserverID: '256' },
}

Reviewers: inka

Reviewed By: inka

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D10771

Details

Provenance
kamilAuthored on Jan 20 2024, 3:13 PM
Reviewer
inka
Differential Revision
D10771: [lib] refactor connection-related actions in `keyserver-reducer` to ops
Parents
rCOMM1315426c5614: [lib] refactor logout in `keyserver-reducer` to ops
Branches
Unknown
Tags
Unknown