From 07fed669f6ac618caf048fae9f564351fa1f9550 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Sat, 16 Feb 2019 02:55:39 +0100 Subject: [PATCH] debug room lastsortkey not loading in chrome (but does in FF!) --- src/matrix/room/persister.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/matrix/room/persister.js b/src/matrix/room/persister.js index 5c896b6b..0acc0528 100644 --- a/src/matrix/room/persister.js +++ b/src/matrix/room/persister.js @@ -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); } }