mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Revert "add logging related to fragments"
This reverts commit 2f355cabef
.
This commit is contained in:
parent
c4a5de20c0
commit
44760a9f82
@ -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) {
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user