diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-04-12 12:15:08 +0200 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-04-12 12:15:08 +0200 |
commit | 0c96ae749c749a5a36e9f28a91bb69f7702d94c5 (patch) | |
tree | 9f47a689f590044ddf19f2d6c3a4ff3027885e7b /lib/room.cpp | |
parent | feb5e82fbe96269f1f7683470b02fbc9c70acaa0 (diff) | |
download | libquotient-0c96ae749c749a5a36e9f28a91bb69f7702d94c5.tar.gz libquotient-0c96ae749c749a5a36e9f28a91bb69f7702d94c5.zip |
Room::safeMemberName()
Pulled from Quaternion code.
Diffstat (limited to 'lib/room.cpp')
-rw-r--r-- | lib/room.cpp | 5 |
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()) |