aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index dc65ebfc..ffe78a3a 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -1449,6 +1449,11 @@ QString Room::roomMembername(const QString& userId) const
return roomMembername(user(userId));
}
+QString Room::safeMemberName(const QString& userId) const
+{
+ return sanitized(roomMembername(userId));
+}
+
void Room::updateData(SyncRoomData&& data, bool fromCache)
{
if (d->prevBatch.isEmpty())