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
Unknown Object (File)
Fri, Nov 22, 1:50 AM
Unknown Object (File)
Thu, Nov 21, 5:53 PM
Unknown Object (File)
Thu, Nov 21, 5:41 PM
Unknown Object (File)
Thu, Nov 21, 1:35 PM
Unknown Object (File)
Thu, Nov 21, 1:15 AM
Unknown Object (File)
Thu, Nov 21, 1:14 AM
Unknown Object (File)
Sat, Nov 9, 4:39 PM
Unknown Object (File)
Wed, Nov 6, 10:34 PM
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
No Lint Coverage
Unit
No Test Coverage

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