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