aboutsummaryrefslogtreecommitdiffstats
path: root/matrix-room.c
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2015-11-19 10:40:01 +0000
committerRichard van der Hoff <richard@matrix.org>2015-11-19 10:40:01 +0000
commiteef1f40be66ccd1aa89394ed98ff06304674307a (patch)
tree0ae9400e29081957267adf2410539c75a73b6235 /matrix-room.c
parent8ba9593fc0328402532cee46926ce6936f072294 (diff)
downloadpurple-matrix-eef1f40be66ccd1aa89394ed98ff06304674307a.tar.gz
Fix a bug which stopped room name changes being handled
If a room's name changed, we didn't update the UI.
Diffstat (limited to 'matrix-room.c')
-rw-r--r--matrix-room.c3
1 files changed, 2 insertions, 1 deletions
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);
}
}