This commit is contained in:
Doug Hoyte
2024-12-19 19:13:46 -05:00
parent 20cc3a66b3
commit ff2424a5ef
5 changed files with 41 additions and 5 deletions

View File

@ -615,7 +615,9 @@ struct EventThread {
if (processedLevIds.contains(e.ev.primaryKeyId)) continue;
if (e.getKind() != 1) continue;
ctx.orphanNodes.emplace_back(e.getCreatedAt(), process(id));
if (!eventCache.contains(e.parent)) {
ctx.orphanNodes.emplace_back(e.getCreatedAt(), process(id));
}
}
std::sort(ctx.orphanNodes.begin(), ctx.orphanNodes.end(), [](auto &a, auto &b){ return a.timestamp < b.timestamp; });