Browse Source

fix push device registration

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
pull/4297/head
Stefan Melmuk 1 year ago
parent
commit
1a07c84aba
No known key found for this signature in database GPG Key ID: 817020C608FE9C09
  1. 4
      src/api/identity.rs

4
src/api/identity.rs

@ -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
// ---

Loading…
Cancel
Save