always keep ID, the API can use @me at discretion anyhow
This commit is contained in:
parent
de6d02fd58
commit
2e563b724a
@ -140,10 +140,8 @@ void dc_account_set_id(dc_account_t a, char const *id)
|
|||||||
{
|
{
|
||||||
return_if_true(a == NULL,);
|
return_if_true(a == NULL,);
|
||||||
|
|
||||||
if (a->id == NULL || strcmp(a->id, "@me")) {
|
free(a->id);
|
||||||
free(a->id);
|
a->id = strdup(id);
|
||||||
a->id = strdup(id);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
char const *dc_account_id(dc_account_t a)
|
char const *dc_account_id(dc_account_t a)
|
||||||
|
Loading…
Reference in New Issue
Block a user