diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-05-22 10:16:42 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-05-22 10:16:42 +0200 |
commit | f3d956aebcd34ecf8c4e2c44acd39d5de380233f (patch) | |
tree | b7c7ff13519127636b8691cd462bb60b88b364bc /src/timeline/TimelineModel.cpp | |
parent | Sort the room list (diff) | |
download | nheko-f3d956aebcd34ecf8c4e2c44acd39d5de380233f.tar.xz |
Fix emoji in new RoomList
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r-- | src/timeline/TimelineModel.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index 2625127c..8f4a8564 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -1891,6 +1891,17 @@ TimelineModel::roomName() const } QString +TimelineModel::plainRoomName() const +{ + auto info = cache::getRoomInfo({room_id_.toStdString()}); + + if (!info.count(room_id_)) + return ""; + else + return QString::fromStdString(info[room_id_].name); +} + +QString TimelineModel::roomAvatarUrl() const { auto info = cache::getRoomInfo({room_id_.toStdString()}); |