Commit de472375 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

conversation: call onDone before announcing to the client

Change-Id: Ib943587e49bcbf16104cf3bbc206e30bc3448f82
parent 60691866
......@@ -244,7 +244,7 @@ public:
if (announceMember) {
std::vector<std::string> members;
for (const auto& m: repository_->members())
for (const auto& m : repository_->members())
members.emplace_back(m.uri);
shared->saveMembers(convId, members);
}
......@@ -652,10 +652,10 @@ Conversation::sendMessage(const Json::Value& value,
auto commit = sthis->pimpl_->repository_->commitMessage(
Json::writeString(wbuilder, value));
sthis->clearFetched();
sthis->pimpl_->announce(commit);
lk.unlock();
if (cb)
cb(!commit.empty(), commit);
sthis->pimpl_->announce(commit);
}
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment