From 92a53f252d4ef90aed1e239436afcce4dba9165e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 9 Nov 2020 14:06:33 +0100 Subject: Matrix: show correct displayname and avatar for direct messages, or rooms with no name/avatar --- plugins/Matrix.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/Matrix.hpp') diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp index 362abeb..9371900 100644 --- a/plugins/Matrix.hpp +++ b/plugins/Matrix.hpp @@ -120,6 +120,8 @@ namespace QuickMedia { size_t messages_read_index = 0; bool pinned_events_updated = false; + bool name_is_fallback = false; + bool avatar_is_fallback = false; std::atomic_int unread_notification_count = 0; @@ -475,6 +477,7 @@ namespace QuickMedia { void events_set_user_read_marker(const rapidjson::Value &events_json, RoomData *room_data, std::shared_ptr &me); void events_add_messages(const rapidjson::Value &events_json, RoomData *room_data, MessageDirection message_dir, bool has_unread_notifications); void events_set_room_name(const rapidjson::Value &events_json, RoomData *room_data); + void set_room_name_to_users_if_empty(RoomData *room, const std::string &room_creator_user_id); void events_add_pinned_events(const rapidjson::Value &events_json, RoomData *room_data); void events_add_room_to_tags(const rapidjson::Value &events_json, RoomData *room_data); void add_invites(const rapidjson::Value &invite_json); -- cgit v1.2.3