aboutsummaryrefslogtreecommitdiffstats
path: root/matrix-room.h
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2015-10-21 15:14:51 +0100
committerRichard van der Hoff <richard@matrix.org>2015-10-21 15:14:51 +0100
commit1a97c621cbaebd8bb5b1ca68f12755977115374a (patch)
tree36d380c8201c6bc97bc6d100879414098a7bb8e2 /matrix-room.h
parentd5a30fbbfb93e151847e64f9a83ae6ea18527cea (diff)
downloadpurple-matrix-1a97c621cbaebd8bb5b1ca68f12755977115374a.tar.gz
Local echo
Do local echo of sent messages, and ignore the remote echo.
Diffstat (limited to 'matrix-room.h')
-rw-r--r--matrix-room.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/matrix-room.h b/matrix-room.h
index 3e5613c..fd8feaa 100644
--- a/matrix-room.h
+++ b/matrix-room.h
@@ -54,14 +54,10 @@ void matrix_room_leave_chat(struct _PurpleConversation *conv);
*
* @param conv info on the room
* @param event_id id of the event
- * @param event_type type of the event (eg m.room.message)
- * @param sender sender of the event
- * @param timestamp timestamp at the origin server
- * @param json_content_obj the 'content' of the event.
+ * @param json_event_obj the event object.
*/
void matrix_room_handle_timeline_event(struct _PurpleConversation *conv,
- const gchar *event_id, const gchar *event_type,
- const gchar *sender, gint64 timestamp, JsonObject *json_content_obj);
+ const gchar *event_id, JsonObject *json_event_obj);
/**
* Send a message in a room
@@ -78,12 +74,11 @@ void matrix_room_send_message(struct _PurpleConversation *conv,
* Update the state table on a room
*
* @param conv info on the room
- * @param event_type type of the event (eg m.room.name)
- * @param state_key
+ * @param event_id id of the event
+ * @param json_event_obj the event object.
*/
void matrix_room_update_state_table(struct _PurpleConversation *conv,
- const gchar *event_type, const gchar *state_key,
- JsonObject *json_content_obj);
+ const gchar *event_id, JsonObject *json_event_obj);
#endif