summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-05-22 10:16:42 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-05-22 10:16:42 +0200
commitf3d956aebcd34ecf8c4e2c44acd39d5de380233f (patch)
treeb7c7ff13519127636b8691cd462bb60b88b364bc /src/timeline/TimelineModel.cpp
parentSort the room list (diff)
downloadnheko-f3d956aebcd34ecf8c4e2c44acd39d5de380233f.tar.xz
Fix emoji in new RoomList
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp11
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()});