summary refs log tree commit diff
path: root/src/timeline/RoomlistModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-07-01 12:45:47 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-07-01 12:45:47 +0200
commit5b016cbc6843029d62f79602a36203d4a4f9e230 (patch)
tree271d96cf3cb9428a49e34d9b0baca6ce45f701ab /src/timeline/RoomlistModel.cpp
parentFix mouse cursor on reply delegates (diff)
downloadnheko-5b016cbc6843029d62f79602a36203d4a4f9e230.tar.xz
Remove dead code to calculate last message
Diffstat (limited to 'src/timeline/RoomlistModel.cpp')
-rw-r--r--src/timeline/RoomlistModel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timeline/RoomlistModel.cpp b/src/timeline/RoomlistModel.cpp

index 7f59b112..6a90ab6e 100644 --- a/src/timeline/RoomlistModel.cpp +++ b/src/timeline/RoomlistModel.cpp
@@ -116,11 +116,11 @@ RoomlistModel::data(const QModelIndex &index, int role) const case Roles::RoomId: return roomid; case Roles::LastMessage: - return room.msgInfo.body; + return QString(); case Roles::Time: - return room.msgInfo.descriptiveTime; + return QString(); case Roles::Timestamp: - return QVariant(static_cast<quint64>(room.msgInfo.timestamp)); + return QVariant(static_cast<quint64>(0)); case Roles::HasUnreadMessages: case Roles::HasLoudNotification: return false;