From 3b1f863419d519415f4571b3c774d8a67441dd30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 18 Mar 2020 10:42:11 +0100 Subject: [PATCH] crypto: Check the shared state of the account when checking for equality. --- src/crypto/olm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/olm.rs b/src/crypto/olm.rs index 1f893d39..e01044f1 100644 --- a/src/crypto/olm.rs +++ b/src/crypto/olm.rs @@ -101,7 +101,7 @@ impl Account { impl PartialEq for Account { fn eq(&self, other: &Self) -> bool { - self.identity_keys() == other.identity_keys() + self.identity_keys() == other.identity_keys() && self.shared == other.shared } }