Skip to content

Commit

Permalink
conversation: set linearized parent for shared commit
Browse files Browse the repository at this point in the history
Change-Id: I2f49e2dbcd6538f7a124398a9c84a68c7e5d256d
  • Loading branch information
atraczyk authored and Sébastien Blin committed Jan 3, 2024
1 parent 1ada7f7 commit dba1509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jamidht/conversation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ Conversation::Impl::handleMessage(History& history, const std::shared_ptr<libjam
// For a loaded message, we load from newest to oldest
// So we change the parent of the last message.
if (!history.messageList.empty())
(*history.messageList.rbegin())->linearizedParent = sharedCommit->id;
sharedCommit->linearizedParent = (*history.messageList.rbegin())->id;
history.messageList.emplace_back(sharedCommit);
}
// Handle pending reactions/editions
Expand Down

0 comments on commit dba1509

Please sign in to comment.