From 8abd0db012e3288378d90d1cc02d7d2f65b61dae Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sat, 26 Aug 2023 01:07:11 +0200 Subject: [PATCH] Remove redundant NeoChatRoom::htmlSafeDisplayName --- src/neochatroom.cpp | 7 +------ src/neochatroom.h | 7 ------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/neochatroom.cpp b/src/neochatroom.cpp index 8e11528e4..0a0a251d6 100644 --- a/src/neochatroom.cpp +++ b/src/neochatroom.cpp @@ -111,7 +111,7 @@ NeoChatRoom::NeoChatRoom(Connection *connection, QString roomId, JoinState joinS qWarning() << "using this room's avatar"; avatar_image = avatar(128); } - NotificationsManager::instance().postInviteNotification(this, htmlSafeDisplayName(), htmlSafeMemberName(senderId), avatar_image); + NotificationsManager::instance().postInviteNotification(this, displayNameForHtml(), htmlSafeMemberName(senderId), avatar_image); }); connect(this, &Room::changed, this, [this] { Q_EMIT canEncryptRoomChanged(); @@ -978,11 +978,6 @@ bool NeoChatRoom::isUserBanned(const QString &user) const return roomMemberEvent->membership() == Membership::Ban; } -QString NeoChatRoom::htmlSafeDisplayName() const -{ - return displayName().toHtmlEscaped(); -} - void NeoChatRoom::deleteMessagesByUser(const QString &user, const QString &reason) { doDeleteMessagesByUser(user, reason); diff --git a/src/neochatroom.h b/src/neochatroom.h index fcba4e62c..b60a68519 100644 --- a/src/neochatroom.h +++ b/src/neochatroom.h @@ -111,11 +111,6 @@ class NeoChatRoom : public Quotient::Room */ Q_PROPERTY(bool readMarkerLoaded READ readMarkerLoaded NOTIFY readMarkerLoadedChanged) - /** - * @brief Display name with any html special characters escaped. - */ - Q_PROPERTY(QString htmlSafeDisplayName READ htmlSafeDisplayName NOTIFY displayNameChanged) - /** * @brief The avatar image to be used for the room. */ @@ -591,8 +586,6 @@ public: [[nodiscard]] bool readMarkerLoaded() const; - QString htmlSafeDisplayName() const; - /** * @brief Get subtitle text for room *