Skip to content
Snippets Groups Projects
Unverified Commit 0b2383ab authored by Stefan Melmuk's avatar Stefan Melmuk Committed by GitHub
Browse files

fix push device registration (#4297)

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
parent ad1d65bd
No related branches found
No related tags found
No related merge requests found
......@@ -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
// ---
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment