diff --git a/src/matrix-api.vala b/src/matrix-api.vala index 0406769..277050b 100644 --- a/src/matrix-api.vala +++ b/src/matrix-api.vala @@ -177,7 +177,7 @@ public interface Matrix.API : GLib.Object { * @param user_id the user whose presence list is being modified */ public abstract void - get_user_presence([CCode (delegate_target_pos = 1.5, scope = "async")] + get_presence([CCode (delegate_target_pos = 1.5, scope = "async")] owned Matrix.API.Callback? @callback, string user_id) throws Matrix.Error; diff --git a/src/matrix-http-api.vala b/src/matrix-http-api.vala index 4a2f8ce..2a609fa 100644 --- a/src/matrix-http-api.vala +++ b/src/matrix-http-api.vala @@ -591,7 +591,7 @@ public class Matrix.HTTPAPI : GLib.Object, Matrix.API { } public void - get_user_presence(API.Callback? cb, + get_presence(API.Callback? cb, string user_id) throws Matrix.Error { diff --git a/src/test-api-client.c b/src/test-api-client.c index 75dbcbd..5cb20e1 100644 --- a/src/test-api-client.c +++ b/src/test-api-client.c @@ -68,7 +68,7 @@ create_room_finished(MatrixAPI *api, } static void -get_user_presence_finished(MatrixAPI *api, +get_presence_finished(MatrixAPI *api, const gchar *content_type, JsonNode *json_content, GByteArray *raw_content, @@ -143,8 +143,8 @@ login_finished(MatrixAPI *api, MATRIX_ROOM_VISIBILITY_DEFAULT, NULL, NULL, NULL, NULL, NULL); matrix_api_get_presence_list(api, NULL, NULL, user_id, NULL); - matrix_api_get_user_presence(api, - get_user_presence_finished, NULL, + matrix_api_get_presence(api, + get_presence_finished, NULL, user_id, NULL); } else { g_printf("Login unsuccessful!\n");