diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-01-09 23:54:28 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-01-09 23:54:28 +0100 |
commit | e810d1382fc5763a0914d915f9382f997034eb91 (patch) | |
tree | 99e5e41a475bf5e12f7fc23bbb67f5b7beccc59a /src/plugins | |
parent | a06362ad111c64dde9fc0ed25c042c295d8656b3 (diff) |
Shit
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Matrix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index 5c7e27b..27c9390 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -1862,7 +1862,7 @@ namespace QuickMedia { const rapidjson::Value &new_displayname_json = GetMember(*content_json, "displayname"); const rapidjson::Value &new_avatar_url_json = GetMember(*content_json, "avatar_url"); const rapidjson::Value &prev_membership_json = GetMember(prev_content_json, "membership"); - if(prev_membership_json.IsString()) { + if(prev_membership_json.IsString() && strcmp(prev_membership_json.GetString(), "leave") == 0) { body = user_display_name + " joined the room"; } else if(new_displayname_json.IsString() && (!prev_displayname_json.IsString() || strcmp(new_displayname_json.GetString(), prev_displayname_json.GetString()) != 0)) { std::string new_displayname_str = std::string(new_displayname_json.GetString()); |