From 2e563b724a0ab913c439e4df826c03c6e3f63b4e Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Wed, 3 Jul 2019 21:14:59 +0200 Subject: [PATCH] always keep ID, the API can use @me at discretion anyhow --- libdc/src/account.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libdc/src/account.c b/libdc/src/account.c index 63b4b9d..363dd66 100644 --- a/libdc/src/account.c +++ b/libdc/src/account.c @@ -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); - } + free(a->id); + a->id = strdup(id); } char const *dc_account_id(dc_account_t a)