Prefetch messages when adding room && wire setting.

This commit is contained in:
Black Hat
2018-07-20 13:50:25 +08:00
parent 6f6a7da414
commit c330bb4ff5
5 changed files with 28 additions and 8 deletions

View File

@@ -43,6 +43,7 @@ void RoomListModel::doAddRoom(QMatrixClient::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);