From 83e7152c8718ca5f44a7f70028519895540c338a Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 15 Jan 2016 20:01:28 +0100 Subject: [PATCH] Implement get_3pids --- src/matrix-http-api.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/matrix-http-api.c b/src/matrix-http-api.c index a27f2e2..65cd86f 100644 --- a/src/matrix-http-api.c +++ b/src/matrix-http-api.c @@ -2287,6 +2287,19 @@ i_token_refresh(MatrixAPI *api, FALSE, error); } +static void +i_get_3pids(MatrixAPI *api, + MatrixAPICallback callback, + gpointer user_data, + GError **error) +{ + _send(MATRIX_HTTP_API(api), + callback, user_data, + CALL_API, + "GET", "account/3pid", NULL, NULL, NULL, NULL, + FALSE, error); +} + static void matrix_http_api_matrix_api_init(MatrixAPIInterface *iface) { @@ -2364,7 +2377,7 @@ matrix_http_api_matrix_api_init(MatrixAPIInterface *iface) iface->token_refresh = i_token_refresh; /* User data */ - iface->get_3pids = NULL; + iface->get_3pids = i_get_3pids; iface->add_3pid = NULL; iface->change_password = NULL; iface->get_profile = NULL;