mirror of https://github.com/vector-im/riot-web
EventIndex: Add some logging to the file panel populating.
parent
519c7f9ef0
commit
3185d6baf5
|
@ -716,14 +716,20 @@ export default class EventIndex extends EventEmitter {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let ret = false;
|
||||||
|
let paginationToken = "";
|
||||||
|
|
||||||
// Set the pagination token to the oldest event that we retrieved.
|
// Set the pagination token to the oldest event that we retrieved.
|
||||||
if (matrixEvents.length > 0) {
|
if (matrixEvents.length > 0) {
|
||||||
timeline.setPaginationToken(matrixEvents[matrixEvents.length - 1].getId(), EventTimeline.BACKWARDS);
|
paginationToken = matrixEvents[matrixEvents.length - 1].getId();
|
||||||
return true;
|
ret = true;
|
||||||
} else {
|
|
||||||
timeline.setPaginationToken("", EventTimeline.BACKWARDS);
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log("EventIndex: Populating file panel with", matrixEvents.length,
|
||||||
|
"events and setting the pagination token to", paginationToken);
|
||||||
|
|
||||||
|
timeline.setPaginationToken(paginationToken, EventTimeline.BACKWARDS);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue