Skip to content

Commit

Permalink
fix push device registration (#4297)
Browse files Browse the repository at this point in the history
don't try to register a push device when the device is new
it will be registered when the push token is saved

fixes #4296
  • Loading branch information
stefan0xC authored Jan 31, 2024
1 parent ad1d65b commit 0b2383a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ async fn _password_login(
}

// register push device
register_push_device(&mut device, conn).await?;
if !new_device {
register_push_device(&mut device, conn).await?;
}

// Common
// ---
Expand Down

0 comments on commit 0b2383a

Please sign in to comment.