From 468550cbdfc852318ebc7bf1537550597f626480 Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Tue, 1 Oct 2019 12:42:19 -0700 Subject: [PATCH] getDeviceMappingForUsers() --- js/modules/loki_file_server_api.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/modules/loki_file_server_api.js b/js/modules/loki_file_server_api.js index 5b110e199..e460b8972 100644 --- a/js/modules/loki_file_server_api.js +++ b/js/modules/loki_file_server_api.js @@ -21,6 +21,11 @@ class LokiFileServerAPI { ); } + async getDeviceMappingForUsers(pubKeys) { + const users = await this._server.getUsersAnnotations(pubKeys); + return users + } + setOurDeviceMapping(authorisations, isPrimary) { const content = { isPrimary: isPrimary ? '1' : '0',