Don't load events if not needed
This commit is contained in:
@@ -91,7 +91,9 @@ void MessageEventModel::setRoom(NeoChatRoom *room)
|
||||
m_currentRoom = room;
|
||||
if (room) {
|
||||
room->setDisplayed();
|
||||
room->getPreviousContent(50);
|
||||
if (m_currentRoom->timelineSize() < 10) {
|
||||
room->getPreviousContent(50);
|
||||
}
|
||||
lastReadEventId = room->readMarkerEventId();
|
||||
|
||||
using namespace Quotient;
|
||||
|
||||
Reference in New Issue
Block a user