From b0315da3d727954afd182e8cfe59dd0ac94f3b71 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 22 Jul 2025 22:01:49 +0000 Subject: [PATCH] Fix branches sharing code. Signed-off-by: Jason Volk --- src/service/pusher/mod.rs | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/service/pusher/mod.rs b/src/service/pusher/mod.rs index 04921f34..989210c1 100644 --- a/src/service/pusher/mod.rs +++ b/src/service/pusher/mod.rs @@ -454,13 +454,7 @@ impl Service { notifi.counts = NotificationCounts::default(); } - if event_id_only { - self.send_request( - &http.url, - send_event_notification::v1::Request::new(notifi), - ) - .await?; - } else { + if !event_id_only { if *event.kind() == TimelineEventType::RoomEncrypted || tweaks .iter() @@ -499,14 +493,11 @@ impl Service { .get_canonical_alias(event.room_id()) .await .ok(); - - self.send_request( - &http.url, - send_event_notification::v1::Request::new(notifi), - ) - .await?; } + self.send_request(&http.url, send_event_notification::v1::Request::new(notifi)) + .await?; + Ok(()) }, // TODO: Handle email