debug room lastsortkey not loading in chrome (but does in FF!)

This commit is contained in:
Bruno Windels 2019-02-16 02:55:39 +01:00
parent be8544aa48
commit 07fed669f6

View File

@ -10,8 +10,10 @@ export default class RoomPersister {
//fetch key here instead?
const [lastEvent] = await txn.roomTimeline.lastEvents(this._roomId, 1);
if (lastEvent) {
console.log("room persister load", this._roomId, lastEvent);
this._lastSortKey = new SortKey(lastEvent.sortKey);
console.log("room persister load", this._roomId, this._lastSortKey.toString());
} else {
console.warn("could not recover last sort key for ", this._roomId);
}
}