diff options
author | Richard van der Hoff <richard@matrix.org> | 2015-11-02 18:03:09 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2015-11-02 18:03:09 +0000 |
commit | 8efee869304ed95823767363df39a5617e38ce7c (patch) | |
tree | 03a802fd6a89e035632ec2e36817d33744c05bdf /matrix-room.c | |
parent | e78ea22ac644ecb3bb08ca2059068825fc77324c (diff) | |
download | purple-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-room.c')
-rw-r--r-- | matrix-room.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/matrix-room.c b/matrix-room.c index d53b6e4..845d481 100644 --- a/matrix-room.c +++ b/matrix-room.c @@ -608,3 +608,12 @@ void matrix_room_send_message(PurpleConversation *conv, const gchar *message) purple_conv_chat_write(chat, _get_my_display_name(conv), message, PURPLE_MESSAGE_SEND, g_get_real_time()/1000/1000); } + + +gchar *matrix_room_displayname_to_userid(struct _PurpleConversation *conv, + const gchar *who) +{ + MatrixRoomMemberTable *member_table = + matrix_room_get_member_table(conv); + return matrix_roommembers_displayname_to_userid(member_table, who); +} |