From 17bb86dbbc42aeb6d4ce8576d33e21ea6b6407df Mon Sep 17 00:00:00 2001 From: qaz741wsd856 Date: Fri, 3 Apr 2026 17:59:00 +0000 Subject: [PATCH] Refactor logout function parameters --- src/api/notifications.rs | 2 +- src/api/push.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/notifications.rs b/src/api/notifications.rs index 7f1a4110..fb82d3c9 100644 --- a/src/api/notifications.rs +++ b/src/api/notifications.rs @@ -358,7 +358,7 @@ impl WebSocketUsers { } } - pub async fn send_logout(&self, user: &User, device: Option<&Device>, conn: &DbConn) { + pub async fn send_logout(&self, user: &User, acting_device: Option<&Device>, conn: &DbConn) { // Skip any processing if both WebSockets and Push are not active if *NOTIFICATIONS_DISABLED { return; diff --git a/src/api/push.rs b/src/api/push.rs index 68b5820c..27358bea 100644 --- a/src/api/push.rs +++ b/src/api/push.rs @@ -188,7 +188,7 @@ pub async fn push_cipher_update(ut: UpdateType, cipher: &Cipher, device: &Device } } -pub async fn push_logout(user: &User, device: Option<&Device>, conn: &DbConn) { +pub async fn push_logout(user: &User, acting_device: Option<&Device>, conn: &DbConn) { if Device::check_user_has_push_device(&user.uuid, conn).await { tokio::task::spawn(send_to_push_relay(json!({ "userId": user.uuid,