From 51d8fd6d6baa78c1df090fd1cf4d9eaff59fd031 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 14 Dec 2015 15:59:35 +0100 Subject: [PATCH] Remove txn_id parameters from the base Matrix API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It will be set internally and won’t be exposed to the public (yet). --- src/matrix-api.c | 7 ++----- src/matrix-api.h | 6 ++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/matrix-api.c b/src/matrix-api.c index 63e9f05..4b77fa6 100644 --- a/src/matrix-api.c +++ b/src/matrix-api.c @@ -455,7 +455,6 @@ matrix_api_send_message(MatrixAPI *api, * @room_id: the room to send the emote to * @event_type: the type of the event to send * @content: the content of the event as a #JsonNode - * @txn_id: the transaction ID to use * * Send a message event to the room. */ @@ -465,8 +464,7 @@ matrix_api_send_message_event(MatrixAPI *api, gpointer user_data, gchar *room_id, gchar *event_type, - JsonNode *content, - guint txn_id) + JsonNode *content) { g_return_if_fail(MATRIX_IS_API(api)); @@ -475,8 +473,7 @@ matrix_api_send_message_event(MatrixAPI *api, callback, user_data, room_id, event_type, - content, - txn_id); + content); } /** diff --git a/src/matrix-api.h b/src/matrix-api.h index 190f9b1..2c170fa 100644 --- a/src/matrix-api.h +++ b/src/matrix-api.h @@ -81,8 +81,7 @@ struct _MatrixAPIInterface { gpointer user_data, gchar *room_id, gchar *event_type, - JsonNode *content, - guint txn_id); + JsonNode *content); void (*send_message)(MatrixAPI *api, MatrixAPICallback callback, gpointer user_data, @@ -202,8 +201,7 @@ void matrix_api_send_message_event(MatrixAPI *api, gpointer user_data, gchar *room_id, gchar *event_type, - JsonNode *content, - guint txn_id); + JsonNode *content); void matrix_api_send_message(MatrixAPI *api, MatrixAPICallback callback, gpointer user_data,