Remove dead code to calculate last message

This commit is contained in:
Nicolas Werner 2021-07-01 12:45:47 +02:00
parent 568ec845da
commit 5b016cbc68
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
4 changed files with 3 additions and 98 deletions

View file

@ -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;