Don't do things in an assert

This commit is contained in:
Tobias Fella
2021-09-17 16:22:19 +02:00
parent c421d4047b
commit 68830bae97

View File

@@ -166,7 +166,7 @@ void MessageEventModel::setRoom(NeoChatRoom *room)
movingEvent = true; movingEvent = true;
// Reverse i because row 0 is bottommost in the model // Reverse i because row 0 is bottommost in the model
const auto row = timelineBaseIndex() - i - 1; const auto row = timelineBaseIndex() - i - 1;
Q_ASSERT(beginMoveRows({}, row, row, {}, timelineBaseIndex())); beginMoveRows({}, row, row, {}, timelineBaseIndex());
}); });
connect(m_currentRoom, &Room::pendingEventMerged, this, [this] { connect(m_currentRoom, &Room::pendingEventMerged, this, [this] {
if (movingEvent) { if (movingEvent) {