From e1f35acfc13acc57d660c026f0df3bc2876a1a66 Mon Sep 17 00:00:00 2001 From: James Graham Date: Sat, 11 Jan 2025 11:14:25 +0000 Subject: [PATCH] Comment update --- Quotient/room.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Quotient/room.cpp b/Quotient/room.cpp index 6d6503de0..5a8ca167d 100644 --- a/Quotient/room.cpp +++ b/Quotient/room.cpp @@ -1776,10 +1776,9 @@ void Room::Private::updateThread(const RoomEvent* event) return; } - auto isNew = false; auto& thread = threads[rme->threadRootEventId()]; + const auto isNew = thread.threadRpotId.isEmpty(); if (thread.threadRootId.isEmpty()) { - isNew = true; thread.threadRootId = rme->threadRootEventId(); // If we can't find the root we assume it's a historical event and will be loaded later. if (auto rootIt = q->findInTimeline(thread.threadRootId); rootIt != historyEdge()) {