fix crash

This commit is contained in:
Carl Schwan
2020-12-02 00:13:39 +01:00
parent 8b18072a58
commit ef56764a97

View File

@@ -57,6 +57,9 @@ MessageEventModel::MessageEventModel(QObject *parent)
qmlRegisterUncreatableType<EventStatus>("org.kde.neochat", 1, 0, "EventStatus", "EventStatus is not an creatable type");
QTimer::singleShot(0, this, [=]() {
if (!m_currentRoom) {
return;
}
m_currentRoom->getPreviousContent(50);
connect(this, &QAbstractListModel::rowsInserted, this, [=](){
if(m_currentRoom->readMarkerEventId().isEmpty()) {