From eef1f40be66ccd1aa89394ed98ff06304674307a Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 19 Nov 2015 10:40:01 +0000 Subject: Fix a bug which stopped room name changes being handled If a room's name changed, we didn't update the UI. --- matrix-room.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'matrix-room.c') diff --git a/matrix-room.c b/matrix-room.c index 1a8738f..f73cd2e 100644 --- a/matrix-room.c +++ b/matrix-room.c @@ -147,6 +147,7 @@ static void _schedule_name_update(PurpleConversation *conv) guint flags = _get_flags(conv); flags |= PURPLE_CONV_FLAG_NEEDS_NAME_UPDATE; _set_flags(conv, flags); + purple_debug_info("matrixprpl", "scheduled deferred room name update\n"); } /** @@ -188,7 +189,7 @@ static void _on_state_update(const gchar *event_type, } else if(strcmp(event_type, "m.room.alias") == 0 || strcmp(event_type, "m.room.canonical_alias") == 0 || - strcmp(event_type, "m.room.room_name") == 0) { + strcmp(event_type, "m.room.name") == 0) { _schedule_name_update(conv); } } -- cgit