aboutsummaryrefslogtreecommitdiffstats
path: root/matrix-room.c
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2015-11-19 14:13:47 +0000
committerRichard van der Hoff <richard@matrix.org>2015-11-19 14:13:47 +0000
commit0afbba2bb6c634f4bd427947414e471b7eef838e (patch)
treeb5b3b7132e964594a4dd883c0bb4b2c35fa98eeb /matrix-room.c
parent38079edc780acdf8b6ad85a72b4f3a2e316e5d87 (diff)
downloadpurple-matrix-0afbba2bb6c634f4bd427947414e471b7eef838e.tar.gz
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.
Diffstat (limited to 'matrix-room.c')
-rw-r--r--matrix-room.c7
1 files changed, 3 insertions, 4 deletions
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;
}