mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-16 05:36:50 +00:00
Add bulk one_time_keys adder to interface.
Add device_exists to interface. Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
a30c043386
commit
8959d9e2c1
3 files changed
+50
-37
No files matched your search
@@ -391,6 +391,14 @@ pub async fn get_device_metadata(
|
||||
.deserialized()
|
||||
}
|
||||
|
||||
#[implement(super::Service)]
|
||||
pub async fn device_exists(&self, user_id: &UserId, device_id: &DeviceId) -> bool {
|
||||
self.db
|
||||
.userdeviceid_metadata
|
||||
.contains(&(user_id, device_id))
|
||||
.await
|
||||
}
|
||||
|
||||
#[implement(super::Service)]
|
||||
pub async fn get_devicelist_version(&self, user_id: &UserId) -> Result<u64> {
|
||||
self.db
|
||||
|
||||
Reference in new issue
Block a user