From 35736146403e4a64ea406c75b0fbf5578d34a0f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 15 Sep 2020 12:13:35 +0200 Subject: [PATCH] crypto: Add some TODOs for the key query handling. --- matrix_sdk_crypto/src/machine.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/matrix_sdk_crypto/src/machine.rs b/matrix_sdk_crypto/src/machine.rs index 39f19393..945ecb49 100644 --- a/matrix_sdk_crypto/src/machine.rs +++ b/matrix_sdk_crypto/src/machine.rs @@ -679,6 +679,15 @@ impl OlmMachine { &self, response: &KeysQueryResponse, ) -> OlmResult<(Vec, Vec)> { + // TODO create a enum that tells us how the device/identity changed, + // e.g. new/deleted/display name change. + // + // TODO create a struct that will hold the device/identity and the + // change enum and return the struct. + // + // TODO once outbound group sessions hold on to the set of users that + // received the session, invalidate the session if a user device + // got added/deleted. let changed_devices = self .handle_devices_from_key_query(&response.device_keys) .await?;