From a54fec7ac5e9bfd98bd5144602222d1635fbfe93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 4 May 2020 14:22:10 +0200 Subject: [PATCH] base: Fix another instance of missing PartialEq support. --- matrix_sdk/src/base_client.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/matrix_sdk/src/base_client.rs b/matrix_sdk/src/base_client.rs index a7868fa5..cb17d879 100644 --- a/matrix_sdk/src/base_client.rs +++ b/matrix_sdk/src/base_client.rs @@ -261,12 +261,15 @@ impl Client { /// Returns true if the room name changed, false otherwise. pub(crate) fn handle_push_rules(&mut self, event: &PushRulesEvent) -> bool { // TODO this is basically a stub - if self.push_ruleset.as_ref() == Some(&event.content.global) { - false - } else { - self.push_ruleset = Some(event.content.global.clone()); - true - } + // TODO ruma removed PartialEq for evens, so this doesn't work anymore. + // Returning always true for now should be ok here since those don't + // change often. + // if self.push_ruleset.as_ref() == Some(&event.content.global) { + // false + // } else { + self.push_ruleset = Some(event.content.global.clone()); + true + // } } /// Receive a timeline event for a joined room and update the client state.