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
This commit is contained in:
miruka 2021-04-20 13:06:56 -04:00
parent d32370fc3a
commit 888b8b32c1

View File

@ -360,7 +360,7 @@ class Accounts(ConfigFile, JSONFile):
"token": client.access_token, "token": client.access_token,
"device_id": client.device_id, "device_id": client.device_id,
"enabled": True, "enabled": True,
"presence": account.presence.value, "presence": account.presence.value.replace("echo_", ""),
"status_msg": account.status_msg, "status_msg": account.status_msg,
"order": account.order, "order": account.order,
}, },