aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-09 14:06:33 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-09 14:06:33 +0100
commit92a53f252d4ef90aed1e239436afcce4dba9165e (patch)
tree406fa2025e3cc5c2cea73a2d8e3217d36f71c3c3 /plugins
parent58add3408ac8b2c2aeabb22ad00990f297bb6954 (diff)
Matrix: show correct displayname and avatar for direct messages, or rooms with no name/avatar
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp3
1 files changed, 3 insertions, 0 deletions
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<UserInfo> &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);