aboutsummaryrefslogtreecommitdiffstats
path: root/matrix-room.h
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2015-10-27 18:49:28 +0000
committerRichard van der Hoff <richard@matrix.org>2015-10-27 18:49:28 +0000
commit08aeaeabff96a9794b9a189839c1b236e1d2763f (patch)
treee37621b49c332bb8a43ea98cbefa5ab2599d7ada /matrix-room.h
parentc69bd547bbdf96470786d4e23b40641a7526942a (diff)
downloadpurple-matrix-08aeaeabff96a9794b9a189839c1b236e1d2763f.tar.gz
Add an indication of the members of a room
An initial implementation for displaying the people in a room. This isn't very nice, and the code is somewhat thrown together as a prototype/proof-of-concept for now. We probably want to refactor matrix-room.c, which is now altogether too unwieldy. It probably also makes sense to try to do some of this stuff on the server.
Diffstat (limited to 'matrix-room.h')
-rw-r--r--matrix-room.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/matrix-room.h b/matrix-room.h
index dd1da06..2ac29eb 100644
--- a/matrix-room.h
+++ b/matrix-room.h
@@ -34,24 +34,17 @@
struct _PurpleConversation;
struct _PurpleConnection;
-struct _MatrixConnectionData;
/**
- * Ensure the room is up to date in the buddy list (ie, it is present,
- * and the alias is correct)
- *
* @param conn connection data for the account
* @param conv conversation info
*/
-void matrix_room_update_buddy_list(struct _MatrixConnectionData *conn,
- struct _PurpleConversation *conv);
+void matrix_room_handle_initial_state(struct _PurpleConversation *conv);
/**
- * If this is an active conversation, return it; otherwise, create it anew.
- *
- * @param ma account associated with the chat
+ * Create a new conversation for the given room
*/
-struct _PurpleConversation *matrix_room_get_or_create_conversation(
+struct _PurpleConversation *matrix_room_create_conversation(
struct _PurpleConnection *pc, const gchar *room_id);
/**
@@ -88,8 +81,10 @@ void matrix_room_send_message(struct _PurpleConversation *conv,
* @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_id, JsonObject *json_event_obj);
+
+void matrix_room_handle_state_event(struct _PurpleConversation *conv,
+ const gchar *event_id, JsonObject *json_event_obj,
+ gboolean suppress_state_update_notifications);
#endif