Browse Source

Refactor logout function parameters

pull/7047/head
qaz741wsd856 3 weeks ago
parent
commit
17bb86dbbc
  1. 2
      src/api/notifications.rs
  2. 2
      src/api/push.rs

2
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;

2
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,

Loading…
Cancel
Save