Don’t download avatar if it is NULL in test-api-client
This commit is contained in:
parent
396af262e5
commit
7658c83143
@ -84,7 +84,7 @@ get_presence_finished(MatrixAPI *api,
|
|||||||
|
|
||||||
g_info("Avatar URL: %s", avatar_url);
|
g_info("Avatar URL: %s", avatar_url);
|
||||||
|
|
||||||
avatar_uri = soup_uri_new(avatar_url);
|
if ((avatar_uri = soup_uri_new(avatar_url)) != NULL) {
|
||||||
g_info("Scheme: %s; authority: %s; path: %s",
|
g_info("Scheme: %s; authority: %s; path: %s",
|
||||||
soup_uri_get_scheme(avatar_uri),
|
soup_uri_get_scheme(avatar_uri),
|
||||||
soup_uri_get_host(avatar_uri),
|
soup_uri_get_host(avatar_uri),
|
||||||
@ -95,6 +95,7 @@ get_presence_finished(MatrixAPI *api,
|
|||||||
NULL, NULL,
|
NULL, NULL,
|
||||||
NULL);
|
NULL);
|
||||||
soup_uri_free(avatar_uri);
|
soup_uri_free(avatar_uri);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user