aboutsummaryrefslogtreecommitdiff
path: root/userapi/storage/devices/sqlite3/storage.go
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-07-22 17:04:57 +0100
committerGitHub <noreply@github.com>2020-07-22 17:04:57 +0100
commit541a23f712a1cff2e8ba0ada41ceff90e86ee42d (patch)
tree1fdacfd2b7479dd6a075bb5680b372f9b7939b59 /userapi/storage/devices/sqlite3/storage.go
parent1e71fd645ed9bbac87627434b303659a195512c7 (diff)
Handle inbound federation E2E key queries/claims (#1215)
* Handle inbound /keys/claim and /keys/query requests * Add display names to device key responses * Linting
Diffstat (limited to 'userapi/storage/devices/sqlite3/storage.go')
-rw-r--r--userapi/storage/devices/sqlite3/storage.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/userapi/storage/devices/sqlite3/storage.go b/userapi/storage/devices/sqlite3/storage.go
index f248abda..b9f08ca1 100644
--- a/userapi/storage/devices/sqlite3/storage.go
+++ b/userapi/storage/devices/sqlite3/storage.go
@@ -77,6 +77,10 @@ func (d *Database) GetDevicesByLocalpart(
return d.devices.selectDevicesByLocalpart(ctx, localpart)
}
+func (d *Database) GetDevicesByID(ctx context.Context, deviceIDs []string) ([]api.Device, error) {
+ return d.devices.selectDevicesByID(ctx, deviceIDs)
+}
+
// CreateDevice makes a new device associated with the given user ID localpart.
// If there is already a device with the same device ID for this user, that access token will be revoked
// and replaced with the given accessToken. If the given accessToken is already in use for another device,