HomePhabricator
Diffusion Comm f1100326aa96

[identity] Augment get_keyserver_keys to use devices table

Description

[identity] Augment get_keyserver_keys to use devices table

Summary:
Similiar to D10303 - updated the function to try getting keyserver keys from devices table first, then fall back to the users table.

This code can be greatly simplified once we remove "legacy" devices attribute from users table.

Depends on D10303

Test Plan: Repeated steps from D10303, just made sure the device is of type keyserver. Also added one more non-keyserver device to make sure filtering is working.

Reviewers: varun, michal

Reviewed By: varun

Subscribers: ashoat, tomek

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

Details

Provenance
bartekAuthored on Dec 11 2023, 10:58 AM
Reviewer
varun
Differential Revision
D10304: [identity] Augment get_keyserver_keys to use devices table
Parents
rCOMM6b1d03f8fa40: [identity] Augment get_keys_for_user to use devices table
Branches
Unknown
Tags
Unknown