From 0afbba2bb6c634f4bd427947414e471b7eef838e Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 19 Nov 2015 14:13:47 +0000 Subject: Update for /sync response changes https://github.com/matrix-org/matrix-doc/pull/165 changes the format of the /sync response. Update our code to accept it. --- matrix-room.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'matrix-room.c') diff --git a/matrix-room.c b/matrix-room.c index f73cd2e..6164014 100644 --- a/matrix-room.c +++ b/matrix-room.c @@ -195,7 +195,7 @@ static void _on_state_update(const gchar *event_type, } void matrix_room_handle_state_event(struct _PurpleConversation *conv, - const gchar *event_id, JsonObject *json_event_obj) + JsonObject *json_event_obj) { MatrixRoomStateEventTable *state_table = matrix_room_get_state_table(conv); matrix_statetable_update(state_table, json_event_obj, @@ -438,7 +438,7 @@ static void _cancel_event_send(PurpleConversation *conv) /*****************************************************************************/ void matrix_room_handle_timeline_event(PurpleConversation *conv, - const gchar *event_id, JsonObject *json_event_obj) + JsonObject *json_event_obj) { const gchar *event_type, *sender_id, *transaction_id; gint64 timestamp; @@ -472,8 +472,7 @@ void matrix_room_handle_timeline_event(PurpleConversation *conv, msg_body = matrix_json_object_get_string_member(json_content_obj, "body"); if(msg_body == NULL) { - purple_debug_warning("matrixprpl", "no body in message event %s\n", - event_id); + purple_debug_warning("matrixprpl", "no body in message event\n"); return; } -- cgit