diff --git a/dist/src/timeline.js b/dist/src/timeline.js index 54a0880..76b2016 100644 --- a/dist/src/timeline.js +++ b/dist/src/timeline.js @@ -171,9 +171,12 @@ export class ThreadTimeline extends Timeline { for (const event of events) { const existing = this.timelineSet.timelineMap.get(event.id); if (existing) { - const otherIdx = existing.getEvents().indexOf(event); - if (otherIdx === -1) - continue; + // TODO + // const merged = merge(this.timelineSet, this); + // if (merged !== this) { + // this.emit("timelineReplace", merged); + // return 0; + // } } else { this.timelineSet.timelineMap.set(event.id, this); @@ -196,7 +199,7 @@ class TimelineSet { return null; } } -function merge2(timelines, tl) { +function merge(timelines, tl) { // [_, _, 2, 3, 4, 5, _, _, _] (current) // [_, _, _, 3, 4, 5, 6, 7, 8] (other1) // [0, 1, 2, 3, 4, _, _, _, _] (other2) @@ -206,83 +209,43 @@ function merge2(timelines, tl) { // event = 2, thisIdx = 0, otherIdx2 = 2 // event = 2, thisIdx = 0, otherIdx3 = 2 // event = 2, thisIdx = 0, otherIdx4 = 0 - // [1, 2] + [4, 5] (events = [2, 3, 4]) const events = tl._eventList; - // let otherTl; - for (const event of events) { + for (let idx = 0; idx < events.length; idx++) { + const event = events[idx]; const other = timelines.timelineMap.get(event.id); if (!other) continue; if (tl === other) continue; - // console.log("merge ", tl, other); - const idx = other._eventList.indexOf(event); other._eventList.unshift(...events.slice(0, idx)); other.isAtBeginning = tl.isAtBeginning; for (const event of events.slice(0, idx)) { timelines.timelineMap.set(event.id, other); } timelines.timelines.delete(tl); + tl.emit("timelineReplace", other); + tl = other; + } + // do it again because a thread can overlap 2 threads (before and after) + // maybe this works? + for (let idx = 0; idx < events.length; idx++) { + const event = events[idx]; + const other = timelines.timelineMap.get(event.id); + if (!other) + continue; + if (tl === other) + continue; + other._eventList.unshift(...events.slice(0, idx)); + other.isAtBeginning = tl.isAtBeginning; + for (const event of events.slice(0, idx)) { + timelines.timelineMap.set(event.id, other); + } + timelines.timelines.delete(tl); + tl.emit("timelineReplace", other); tl = other; } - // for (const event of events) { - // const other = timelines.timelineMap.get(event.id); - // if (!other) continue; - // if (tl === other) continue; - // console.log("merge ", tl, other); - // // const idx = other._eventList.indexOf(event); - // // other._eventList.splice(idx, other._eventList.length - idx); - // // other._eventList.push(...events.slice(idx)); - // other.isAtEnd = tl.isAtEnd; - // tl = other; - // } - // for (let i = events.length - 1; i >= 0; i--) { - // const event = events[i]; - // const other = timelines.timelineMap.get(event.id); - // if (!other) continue; - // if (tl === other) continue; - // const idx = other._eventList.lastIndexOf(event); - // other._eventList.push(...events.slice(idx)); - // for (const event of events.slice(0, idx)) { - // timelines.timelineMap.set(event.id, other); - // } - // timelines.timelines.delete(tl); - // tl = other; - // } return tl; } -// function merge(timelines: ThreadTimelineSet, events: Array): ThreadTimeline | null { -// for (const event of events) { -// const other = timelines.timelineMap.get(event.id); -// if (!other) continue; -// if (tl === other) continue; -// console.log("merge earliest with ", other); -// const idx = other._eventList.indexOf(event); -// other._eventList.unshift(...events.slice(0, idx)); -// other.isAtBeginning = true; -// return other; -// } -// return null; -// } -// const realTimeline = merge(this, tl._eventList) ?? tl; -// function merge(timelines: ThreadTimelineSet, events: Array): ThreadTimeline | null { -// // [_, _, _, _, (4), 5, 6, 7] -// // [0, 1, 2, 3, 4 , 5] -// // ^ -// for (const event of events) { -// const other = timelines.timelineMap.get(event.id); -// if (!other) continue; -// if (tl === other) continue; -// console.log("merge live with ", other); -// const idx = other._eventList.indexOf(event); -// other._eventList.splice(idx, other._eventList.length - idx); // delete 4, 5 -// other._eventList.push(...events.slice(idx)); // push 4, 5, 6, 7 -// other.isAtEnd = true; -// return other; -// } -// return null; -// } -// const realTimeline = merge(this, tl._eventList); export class ThreadTimelineSet extends TimelineSet { constructor(thread) { super(); @@ -322,14 +285,14 @@ export class ThreadTimelineSet extends TimelineSet { this.timelines.add(this.live); } async fetch(at, limit = 50) { + console.log("FETCH"); if (at === "end") { const fetchCount = limit - this.live.getEvents().length; if (fetchCount > 0) await this.live.paginate("b", fetchCount); - return this.live; const tl = this.live; - const realTimeline = merge2(this, tl); - if (realTimeline) { + const realTimeline = merge(this, tl); + if (realTimeline !== tl) { this.timelines.delete(tl); this.live = realTimeline; } @@ -345,15 +308,16 @@ export class ThreadTimelineSet extends TimelineSet { } else { const tl = new ThreadTimeline(this, this.thread); - await tl.paginate("b", limit); - this.timelines.add(tl); - return tl; - const realTimeline = merge2(this, tl) ?? tl; + await tl.paginate("f", limit); + const realTimeline = merge(this, tl); + if (realTimeline !== tl) + this.timelines.add(realTimeline); return realTimeline; } } else { // TODO: respect limit? + // TODO: merge threads const existing = this.timelineMap.get(at); if (existing) { const fetchCount = limit - existing.getEvents().length; diff --git a/dist/src/timeline.js.map b/dist/src/timeline.js.map index fb578b4..c823e5f 100644 --- a/dist/src/timeline.js.map +++ b/dist/src/timeline.js.map @@ -1 +1 @@ -{"version":3,"file":"timeline.js","sourceRoot":"","sources":["../../src/timeline.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAK7C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAGnC,OAAO,YAAY,MAAM,QAAQ,CAAC;AAiBlC,MAAM,SAAS,GAAG,CAAC,IAAU,EAAE,EAAE,CAAC,CAAC,GAAa,EAAS,EAAE;IACzD,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC/C,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAC9B,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACnC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACrC,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF,MAAe,QAAS,SAAS,YAAuE;IAAxG;;QACS;;;;mBAAyB,KAAK;WAAC;QAC/B;;;;mBAAmB,KAAK;WAAC;QAEhC,2EAA2E;QAC3E;;;;mBAA2B,EAAE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fig.tsbuildinfo @@ -1 +1 @@ -{"program":{"fileNames":["../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es5.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.dom.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/api.ts","../src/net.ts","../node_modules/.pnpm/@types+events@3.0.3/node_modules/@types/events/index.d.ts","../node_modules/.pnpm/typed-emitter@2.1.0/node_modules/typed-emitter/index.d.ts","../src/event.ts","../src/thread.ts","../src/timeline.ts","../node_modules/.pnpm/nanoid@5.0.4/node_modules/nanoid/index.d.ts","../src/room.ts","../src/setup.ts","../src/index.ts","../src/sync.ts","../src/client.ts","../src/utils.ts"],"fileInfos":[{"version":"f33e5332b24c3773e930e212cbb8b6867c8ba3ec4492064ea78e55a524d57450","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc",{"version":"21e41a76098aa7a191028256e52a726baafd45a925ea5cf0222eb430c96c1d83","affectsGlobalScope":true},{"version":"35299ae4a62086698444a5aaee27fc7aa377c68cbb90b441c9ace246ffd05c97","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"62a4966981264d1f04c44eb0f4b5bdc3d81c1a54725608861e44755aa24ad6a5","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"86a34c7a13de9cabc43161348f663624b56871ed80986e41d214932ddd8d6719","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"6a2e04d0499522c5ade3e420909c80fbdcb6f8623df5adb259f43a76edeb50e9","signature":"5753d558d9fb14b837c56862788a87bf99448833f3251d9e73beca059977c97c"},{"version":"b8b3583d51d142980dfec81857c834d69959b76dc13870853cf2163de013d4e5","signature":"a6bfb777036b6969cf9b4633a021b84ffff16d168a7587eb561d8c8d9c2382c3"},"93d28b4eb12c68fccc1f2fc04a4ef83ea3b2a03b18055d3bf29cab267aa7042e","6c27d4b5ba01295ef334456d9af4366aca789f228eee70fcb874b903a59b0e5b",{"version":"5f58bf022e7d045085a3a0d3399b885c3bfba7b367186c96c89ce1738d3148ac","signature":"3c730ad1c3d733f2fbf8d4ed34ac7458155e789c3dec6a7b03d220a1a492391b"},{"version":"6c494f251c24785b209b3cabb5b482ccf61dbf094d0da7383c7220a3401b6152","signature":"7277284f8ec8b0a8a8189ca3e9bf22a9e7c0f877935887398cbc875838a6eda5"},{"version":"e5f907c0a3dab892718e1013b2391a1853c234c8a6566815567a0452310fa6c0","signature":"d2b4b06734a88d149b2f01044f91a00a9351505bcf8aa178bf6cf587d7e3a263"},"a45ee7555d019a67fbe092898d1aef0b1d02a9f6679ab84461ff515b4460d706",{"version":"83c002b97d5fe41c4d5f44ebf5d220a6ea7af01b076ced199016cafbc8d2124d","signature":"cbaeaad7347a9527210a25bc4e3661a5c1524b0256f06fbfbad44fbf2ca4b3b7"},{"version":"5681e44ea9ec05beaf1d10b4c3b195900878ed22eb6570a202db01cbffadee8b","signature":"c7fda10b2b469752cc34729106adcc0e2a5f478d0f168198cbf77cc9fb79efef"},"5d1e06113fcc0d9fe107463d91012dd143b72673ccd624c3476a6024fcf1f390",{"version":"6a2386acdffab7661c40792ab572b935f83f16c00202361dceb09fe4ebc4fb86","signature":"72848e8c0680b2f2b81304c45137ce94af346b19ba084a90eb37437b8f14a163"},{"version":"45d3df4428547ebaaae1c1751a7f22d946ef4e178a1177d5e40bc8c91e3b8a65","signature":"50eba590976cb451e221e14637a0218899efcc78b414e8afe0c6dead6ebdc7f9"},{"version":"00732cfad7bfbc344b48cebb977fb5c06b7394f3008488947d27383cccfb4e54","signature":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}],"root":[59,60,[63,65],[67,72]],"options":{"composite":true,"module":99,"noFallthroughCasesInSwitch":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"strictNullChecks":true,"target":7,"useDefineForClassFields":true},"fileIdsList":[[59,60,61,62,67,70],[59,67,71],[59,63,64,67,68,71],[59,71],[59,61,62,63,64,65,66,71],[71],[59,66,67,69],[59,61,62,63,65,67],[59,61,62,63,64,67],[59,60,62,67,70],[59,62,63,64,65,71],[59,69],[59,62,63,65,67],[59,62,63,64,67,71]],"referencedMap":[[71,1],[63,2],[69,3],[60,4],[67,5],[68,6],[70,7],[64,8],[65,9]],"exportedModulesMap":[[71,10],[63,2],[69,3],[60,4],[67,11],[68,6],[70,12],[64,13],[65,14]],"semanticDiagnosticsPerFile":[61,66,62,57,58,10,11,13,12,2,14,15,16,17,18,19,20,21,3,4,22,26,23,24,25,27,28,29,5,30,31,32,33,6,37,34,35,36,38,7,39,44,45,40,41,42,43,8,49,46,47,48,50,9,51,52,53,56,54,55,1,59,71,63,69,60,67,68,70,64,65,72],"latestChangedDtsFile":"./src/room.d.ts"},"version":"5.3.2"} \ No newline at end of file +{"program":{"fileNames":["../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es5.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.dom.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/.pnpm/typescript@5.3.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/api.ts","../src/net.ts","../node_modules/.pnpm/@types+events@3.0.3/node_modules/@types/events/index.d.ts","../node_modules/.pnpm/typed-emitter@2.1.0/node_modules/typed-emitter/index.d.ts","../src/event.ts","../src/thread.ts","../src/timeline.ts","../node_modules/.pnpm/nanoid@5.0.4/node_modules/nanoid/index.d.ts","../src/room.ts","../src/setup.ts","../src/index.ts","../src/sync.ts","../src/client.ts","../src/utils.ts"],"fileInfos":[{"version":"f33e5332b24c3773e930e212cbb8b6867c8ba3ec4492064ea78e55a524d57450","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc",{"version":"21e41a76098aa7a191028256e52a726baafd45a925ea5cf0222eb430c96c1d83","affectsGlobalScope":true},{"version":"35299ae4a62086698444a5aaee27fc7aa377c68cbb90b441c9ace246ffd05c97","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"62a4966981264d1f04c44eb0f4b5bdc3d81c1a54725608861e44755aa24ad6a5","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"86a34c7a13de9cabc43161348f663624b56871ed80986e41d214932ddd8d6719","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"6a2e04d0499522c5ade3e420909c80fbdcb6f8623df5adb259f43a76edeb50e9","signature":"5753d558d9fb14b837c56862788a87bf99448833f3251d9e73beca059977c97c"},{"version":"b8b3583d51d142980dfec81857c834d69959b76dc13870853cf2163de013d4e5","signature":"a6bfb777036b6969cf9b4633a021b84ffff16d168a7587eb561d8c8d9c2382c3"},"93d28b4eb12c68fccc1f2fc04a4ef83ea3b2a03b18055d3bf29cab267aa7042e","6c27d4b5ba01295ef334456d9af4366aca789f228eee70fcb874b903a59b0e5b",{"version":"5f58bf022e7d045085a3a0d3399b885c3bfba7b367186c96c89ce1738d3148ac","signature":"3c730ad1c3d733f2fbf8d4ed34ac7458155e789c3dec6a7b03d220a1a492391b"},{"version":"6c494f251c24785b209b3cabb5b482ccf61dbf094d0da7383c7220a3401b6152","signature":"7277284f8ec8b0a8a8189ca3e9bf22a9e7c0f877935887398cbc875838a6eda5"},{"version":"0464d75ce51b712afe9b96a46d0da300fa3548362d00949059a07466be80e6a0","signature":"d2b4b06734a88d149b2f01044f91a00a9351505bcf8aa178bf6cf587d7e3a263"},"a45ee7555d019a67fbe092898d1aef0b1d02a9f6679ab84461ff515b4460d706",{"version":"83c002b97d5fe41c4d5f44ebf5d220a6ea7af01b076ced199016cafbc8d2124d","signature":"cbaeaad7347a9527210a25bc4e3661a5c1524b0256f06fbfbad44fbf2ca4b3b7"},{"version":"5681e44ea9ec05beaf1d10b4c3b195900878ed22eb6570a202db01cbffadee8b","signature":"c7fda10b2b469752cc34729106adcc0e2a5f478d0f168198cbf77cc9fb79efef"},"5d1e06113fcc0d9fe107463d91012dd143b72673ccd624c3476a6024fcf1f390",{"version":"6a2386acdffab7661c40792ab572b935f83f16c00202361dceb09fe4ebc4fb86","signature":"72848e8c0680b2f2b81304c45137ce94af346b19ba084a90eb37437b8f14a163"},{"version":"45d3df4428547ebaaae1c1751a7f22d946ef4e178a1177d5e40bc8c91e3b8a65","signature":"50eba590976cb451e221e14637a0218899efcc78b414e8afe0c6dead6ebdc7f9"},{"version":"00732cfad7bfbc344b48cebb977fb5c06b7394f3008488947d27383cccfb4e54","signature":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}],"root":[59,60,[63,65],[67,72]],"options":{"composite":true,"module":99,"noFallthroughCasesInSwitch":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"strictNullChecks":true,"target":7,"useDefineForClassFields":true},"fileIdsList":[[59,60,61,62,67,70],[59,67,71],[59,63,64,67,68,71],[59,71],[59,61,62,63,64,65,66,71],[71],[59,66,67,69],[59,61,62,63,65,67],[59,61,62,63,64,67],[59,60,62,67,70],[59,62,63,64,65,71],[59,69],[59,62,63,65,67],[59,62,63,64,67,71]],"referencedMap":[[71,1],[63,2],[69,3],[60,4],[67,5],[68,6],[70,7],[64,8],[65,9]],"exportedModulesMap":[[71,10],[63,2],[69,3],[60,4],[67,11],[68,6],[70,12],[64,13],[65,14]],"semanticDiagnosticsPerFile":[61,66,62,57,58,10,11,13,12,2,14,15,16,17,18,19,20,21,3,4,22,26,23,24,25,27,28,29,5,30,31,32,33,6,37,34,35,36,38,7,39,44,45,40,41,42,43,8,49,46,47,48,50,9,51,52,53,56,54,55,1,59,71,63,69,60,67,68,70,64,65,72],"latestChangedDtsFile":"./src/room.d.ts"},"version":"5.3.2"} \ No newline at end of file diff --git a/src/timeline.ts b/src/timeline.ts index a12f8cc..cb02008 100644 --- a/src/timeline.ts +++ b/src/timeline.ts @@ -143,8 +143,12 @@ export class ThreadTimeline extends Timeline implements TypedEmitter= 0; i--) { - // const event = events[i]; - // const other = timelines.timelineMap.get(event.id); - // if (!other) continue; - // if (tl === other) continue; + other._eventList.unshift(...events.slice(0, idx)); + other.isAtBeginning = tl.isAtBeginning; - // const idx = other._eventList.lastIndexOf(event); - // other._eventList.push(...events.slice(idx)); - - // for (const event of events.slice(0, idx)) { - // timelines.timelineMap.set(event.id, other); - // } - // timelines.timelines.delete(tl); - // tl = other; - // } + for (const event of events.slice(0, idx)) { + timelines.timelineMap.set(event.id, other); + } + timelines.timelines.delete(tl); + tl.emit("timelineReplace", other); + tl = other; + } return tl; } - - // function merge(timelines: ThreadTimelineSet, events: Array): ThreadTimeline | null { - // for (const event of events) { - // const other = timelines.timelineMap.get(event.id); - // if (!other) continue; - // if (tl === other) continue; - // console.log("merge earliest with ", other); - // const idx = other._eventList.indexOf(event); - // other._eventList.unshift(...events.slice(0, idx)); - // other.isAtBeginning = true; - // return other; - // } - // return null; - // } - - // const realTimeline = merge(this, tl._eventList) ?? tl; - - // function merge(timelines: ThreadTimelineSet, events: Array): ThreadTimeline | null { - // // [_, _, _, _, (4), 5, 6, 7] - // // [0, 1, 2, 3, 4 , 5] - // // ^ - - // for (const event of events) { - // const other = timelines.timelineMap.get(event.id); - // if (!other) continue; - // if (tl === other) continue; - // console.log("merge live with ", other); - - // const idx = other._eventList.indexOf(event); - // other._eventList.splice(idx, other._eventList.length - idx); // delete 4, 5 - // other._eventList.push(...events.slice(idx)); // push 4, 5, 6, 7 - - // other.isAtEnd = true; - // return other; - // } - // return null; - // } - - // const realTimeline = merge(this, tl._eventList); - export class ThreadTimelineSet extends TimelineSet { // This is the one live timeline public client = this.thread.room.client; @@ -291,15 +241,13 @@ export class ThreadTimelineSet extends TimelineSet { } public async fetch(at: EventId | "start" | "end", limit = 50): Promise { + console.log("FETCH"); if (at === "end") { const fetchCount = limit - this.live.getEvents().length; if (fetchCount > 0) await this.live.paginate("b", fetchCount); - return this.live; - const tl = this.live; - - const realTimeline = merge2(this, tl); - if (realTimeline) { + const realTimeline = merge(this, tl); + if (realTimeline !== tl) { this.timelines.delete(tl); this.live = realTimeline; } @@ -312,14 +260,14 @@ export class ThreadTimelineSet extends TimelineSet { return existing; } else { const tl = new ThreadTimeline(this, this.thread); - await tl.paginate("b", limit); - this.timelines.add(tl); - return tl; - const realTimeline = merge2(this, tl) ?? tl; + await tl.paginate("f", limit); + const realTimeline = merge(this, tl); + if (realTimeline !== tl) this.timelines.add(realTimeline); return realTimeline; } } else { // TODO: respect limit? + // TODO: merge threads const existing = this.timelineMap.get(at); if (existing) { const fetchCount = limit - existing.getEvents().length; diff --git a/tsconfig.json b/tsconfig.json index 9064ae2..8541ab7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,8 +17,6 @@ /* Linting */ "strict": true, "strictNullChecks": true, - "noUnusedLocals": true, - "noUnusedParameters": true, "noFallthroughCasesInSwitch": true, }, "include": ["src"],