diff options
author | Midov <midov@midov.pl> | 2022-05-09 08:37:55 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-05-09 12:17:33 +0200 |
commit | 0333a586566653cfbc501f909f5a10dc082681d2 (patch) | |
tree | de20199951660dbcd55033de5318580328357368 | |
parent | ce224e4df4c1615391ff6c07269992129bcc92d8 (diff) |
fix pronouns
-rw-r--r-- | src/plugins/Matrix.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index 5306349..b54092e 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -2345,22 +2345,22 @@ namespace QuickMedia { prev_displayname_str = std::string(prev_displayname_json.GetString(), prev_displayname_json.GetStringLength()); else prev_displayname_str = sender_json_str; - body = extract_first_line_remove_newline_elipses(prev_displayname_str, AUTHOR_MAX_LENGTH) + " changed their display name to " + extract_first_line_remove_newline_elipses(new_displayname_str, AUTHOR_MAX_LENGTH); + body = extract_first_line_remove_newline_elipses(prev_displayname_str, AUTHOR_MAX_LENGTH) + " changed his display name to " + extract_first_line_remove_newline_elipses(new_displayname_str, AUTHOR_MAX_LENGTH); new_display_name = new_displayname_str; room_data->set_user_display_name(user, std::move(new_displayname_str)); } else if((!new_displayname_json.IsString() || new_displayname_json.GetStringLength() == 0) && prev_displayname_json.IsString()) { - body = user_display_name + " removed their display name"; + body = user_display_name + " removed his display name"; new_display_name = ""; room_data->set_user_display_name(user, ""); } else if(new_avatar_url_json.IsString() && new_avatar_url_json.GetStringLength() > 0 && (!prev_avatar_url_json.IsString() || strcmp(new_avatar_url_json.GetString(), prev_avatar_url_json.GetString()) != 0)) { - body = user_display_name + " changed their profile picture"; + body = user_display_name + " changed his profile picture"; std::string new_avatar_url_str = thumbnail_url_extract_media_id(new_avatar_url_json.GetString()); if(!new_avatar_url_str.empty()) new_avatar_url_str = get_thumbnail_url(homeserver, new_avatar_url_str); // TODO: Remove the constant strings around to reduce memory usage (6.3mb) new_avatar_url = new_avatar_url_str; room_data->set_user_avatar_url(user, std::move(new_avatar_url_str)); } else if((!new_avatar_url_json.IsString() || new_avatar_url_json.GetStringLength() == 0) && prev_avatar_url_json.IsString()) { - body = user_display_name + " removed their profile picture"; + body = user_display_name + " removed his profile picture"; new_avatar_url = ""; room_data->set_user_avatar_url(user, ""); } else { |