Skip to content
Snippets Groups Projects
Commit a86dbe13 authored by Léopold Chappuis's avatar Léopold Chappuis Committed by Léopold Chappuis
Browse files

loadMessages2: Fix loading messages

The Daemon API now returns the correct number of messages requested. Previously, it could load the entire conversation.

Change-Id: I3204abc4c0f0dcc55dbc436e4c8740b3f886b8b8
parent 41970019
No related branches found
No related tags found
No related merge requests found
......@@ -937,6 +937,8 @@ Conversation::Impl::loadMessages2(const LogOptions& options, History* optHistory
return CallbackResult::Ok; // Continue
},
[&](auto&& cc) {
if(msgList.size() == options.nbOfCommits)
return;
auto optMessage = repository_->convCommitToMap(cc);
if (!optMessage.has_value())
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment