Skip to content

Commit

Permalink
Comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
nvrWhere committed Jan 11, 2025
1 parent 93ef9a5 commit e1f35ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Quotient/room.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit e1f35ac

Please sign in to comment.