From 1a07c84aba448135f35b58db6b4e137b03a36528 Mon Sep 17 00:00:00 2001 From: Stefan Melmuk Date: Wed, 31 Jan 2024 19:13:33 +0100 Subject: [PATCH] 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 --- src/api/identity.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/identity.rs b/src/api/identity.rs index 6f1155bb1f..9f3cd1bf89 100644 --- a/src/api/identity.rs +++ b/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 // ---