always keep ID, the API can use @me at discretion anyhow

This commit is contained in:
Florian Stinglmayr 2019-07-03 21:14:59 +02:00
parent de6d02fd58
commit 2e563b724a

View File

@ -140,10 +140,8 @@ void dc_account_set_id(dc_account_t a, char const *id)
{
return_if_true(a == NULL,);
if (a->id == NULL || strcmp(a->id, "@me")) {
free(a->id);
a->id = strdup(id);
}
}
char const *dc_account_id(dc_account_t a)