Revert "add logging related to fragments"

This reverts commit 2f355cabef.
This commit is contained in:
Bruno Windels 2020-03-21 10:47:35 +01:00
parent c4a5de20c0
commit 44760a9f82
2 changed files with 1 additions and 14 deletions

View File

@ -142,13 +142,6 @@ export default class FragmentIdComparer {
rebuild(fragments) {
const islands = createIslands(fragments);
const fragmentJson = JSON.stringify(islands.map(i => {
return Array.from(i._idToSortIndex.entries())
.map(([id, idx]) => {return {id, idx};})
.sort((a, b) => a.idx - b.idx);
}));
const firstFragment = this._fragmentsById.values().next().value;
console.log("rebuilt fragment index", firstFragment && firstFragment.roomId, fragmentJson);
this._idToIsland = new Map();
for(let island of islands) {
for(let id of island.fragmentIds) {

View File

@ -33,13 +33,7 @@ export default class Timeline {
/** @package */
appendLiveEntries(newEntries) {
try {
this._remoteEntries.setManySorted(newEntries);
} catch (err) {
console.error("error while appending live entries in roomId", this._roomId);
console.error(err.stack);
throw err;
}
this._remoteEntries.setManySorted(newEntries);
}
/** @public */