Page MenuHomePhabricator

[lib] Add selector to get peers user and device IDs
ClosedPublic

Authored by bartek on Aug 6 2024, 1:01 AM.
Tags
None
Referenced Files
F3332715: D12994.id43171.diff
Thu, Nov 21, 1:15 AM
F3332698: D12994.id43175.diff
Thu, Nov 21, 1:14 AM
Unknown Object (File)
Sat, Nov 9, 4:39 PM
Unknown Object (File)
Wed, Nov 6, 10:34 PM
Unknown Object (File)
Sun, Nov 3, 1:30 PM
Unknown Object (File)
Sat, Nov 2, 3:58 AM
Unknown Object (File)
Sat, Nov 2, 3:58 AM
Unknown Object (File)
Sat, Nov 2, 3:57 AM
Subscribers

Details

Summary

Added a selector to conveniently get peers (userID, deviceID) pairs which can be used to e.g. broadcast Olm messages.

Test Plan

Flow. Logic tested later in the stack

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Aug 6 2024, 1:35 AM
kamil added inline comments.
lib/selectors/user-selectors.js
263 ↗(On Diff #43164)

I think this is better but up to you

This revision is now accepted and ready to land.Aug 6 2024, 2:44 AM

Rename according to suggestion