base: Fix another instance of missing PartialEq support.
parent
940332d414
commit
a54fec7ac5
|
@ -261,12 +261,15 @@ impl Client {
|
||||||
/// Returns true if the room name changed, false otherwise.
|
/// Returns true if the room name changed, false otherwise.
|
||||||
pub(crate) fn handle_push_rules(&mut self, event: &PushRulesEvent) -> bool {
|
pub(crate) fn handle_push_rules(&mut self, event: &PushRulesEvent) -> bool {
|
||||||
// TODO this is basically a stub
|
// TODO this is basically a stub
|
||||||
if self.push_ruleset.as_ref() == Some(&event.content.global) {
|
// TODO ruma removed PartialEq for evens, so this doesn't work anymore.
|
||||||
false
|
// Returning always true for now should be ok here since those don't
|
||||||
} else {
|
// change often.
|
||||||
|
// if self.push_ruleset.as_ref() == Some(&event.content.global) {
|
||||||
|
// false
|
||||||
|
// } else {
|
||||||
self.push_ruleset = Some(event.content.global.clone());
|
self.push_ruleset = Some(event.content.global.clone());
|
||||||
true
|
true
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Receive a timeline event for a joined room and update the client state.
|
/// Receive a timeline event for a joined room and update the client state.
|
||||||
|
|
Loading…
Reference in New Issue