From 888b8b32c15c8782fa9cc38a3a1cabe3a8717598 Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 20 Apr 2021 13:06:56 -0400 Subject: [PATCH] Fix account saved with incorrect presence on login Saving account with an echo_ presence resulted in error 400 on /sync due to the server not understanding the presence we're trying to set --- src/backend/user_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/user_files.py b/src/backend/user_files.py index 656d8134..4a43fca1 100644 --- a/src/backend/user_files.py +++ b/src/backend/user_files.py @@ -360,7 +360,7 @@ class Accounts(ConfigFile, JSONFile): "token": client.access_token, "device_id": client.device_id, "enabled": True, - "presence": account.presence.value, + "presence": account.presence.value.replace("echo_", ""), "status_msg": account.status_msg, "order": account.order, },