Code cleanup && speed up initial sync.

This commit is contained in:
Black Hat
2018-08-07 23:41:18 +08:00
parent bca88c17b5
commit 5e3f18e320
8 changed files with 66 additions and 102 deletions

View File

@@ -42,7 +42,6 @@ void RoomListModel::doAddRoom(Room* r) {
if (auto* room = r) {
m_rooms.append(room);
connectRoomSignals(room);
if (room->timelineSize() == 0) room->getPreviousContent(50);
} else {
qCritical() << "Attempt to add nullptr to the room list";
Q_ASSERT(false);