aboutsummaryrefslogtreecommitdiffstats
path: root/matrix-roommembers.h
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2015-11-02 18:03:09 +0000
committerRichard van der Hoff <richard@matrix.org>2015-11-02 18:03:09 +0000
commit8efee869304ed95823767363df39a5617e38ce7c (patch)
tree03a802fd6a89e035632ec2e36817d33744c05bdf /matrix-roommembers.h
parente78ea22ac644ecb3bb08ca2059068825fc77324c (diff)
downloadpurple-matrix-8efee869304ed95823767363df39a5617e38ce7c.tar.gz
Implement get_cb_real_name
Fixing this means purple is slightly less confused about who the users in our chats are.
Diffstat (limited to 'matrix-roommembers.h')
-rw-r--r--matrix-roommembers.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/matrix-roommembers.h b/matrix-roommembers.h
index e00cc70..2ae5538 100644
--- a/matrix-roommembers.h
+++ b/matrix-roommembers.h
@@ -107,4 +107,14 @@ void matrix_roommembers_get_renamed_members(MatrixRoomMemberTable *table,
void matrix_roommembers_get_left_members(MatrixRoomMemberTable *table,
GList **names);
+
+/**
+ * Get the userid of a member of a room, given their displayname
+ *
+ * @returns a string, which will be freed by the caller, or null if not known
+ */
+gchar *matrix_roommembers_displayname_to_userid(
+ MatrixRoomMemberTable *table, const gchar *who);
+
+
#endif /* MATRIX_ROOMMEMBERS_H_ */