diff --git a/src/messageeventmodel.cpp b/src/messageeventmodel.cpp index ccf2f91d0..ff7a49d86 100644 --- a/src/messageeventmodel.cpp +++ b/src/messageeventmodel.cpp @@ -854,7 +854,7 @@ QVariant MessageEventModel::data(const QModelIndex &idx, int role) const if (evt.originalEvent()) { auto encrypted = dynamic_cast(evt.originalEvent()); Q_ASSERT(encrypted); - return m_currentRoom->connection()->isVerifiedSession(encrypted->sessionId()); + return m_currentRoom->connection()->isVerifiedSession(encrypted->sessionId().toLatin1()); } #endif #endif