ut_conversation: fix build

Change-Id: I7362b02cc1fd557cf454ccc29d60ff88a53f4afc
This commit is contained in:
Sébastien Blin
2022-10-20 09:25:52 -04:00
parent c0afc3ab8d
commit 483b2b97ae

View File

@ -2629,19 +2629,19 @@ ConversationTest::testCountInteractions()
std::string msgId1 = "", msgId2 = "", msgId3 = "";
aliceAccount->convModule()
->sendMessage(convId, "1"s, "", "text/plain", true, [&](bool, std::string commitId) {
->sendMessage(convId, "1"s, "", "text/plain", true, {}, [&](bool, std::string commitId) {
msgId1 = commitId;
cv.notify_one();
});
CPPUNIT_ASSERT(cv.wait_for(lk, 30s, [&] { return !msgId1.empty(); }));
aliceAccount->convModule()
->sendMessage(convId, "2"s, "", "text/plain", true, [&](bool, std::string commitId) {
->sendMessage(convId, "2"s, "", "text/plain", true, {}, [&](bool, std::string commitId) {
msgId2 = commitId;
cv.notify_one();
});
CPPUNIT_ASSERT(cv.wait_for(lk, 30s, [&] { return !msgId2.empty(); }));
aliceAccount->convModule()
->sendMessage(convId, "3"s, "", "text/plain", true, [&](bool, std::string commitId) {
->sendMessage(convId, "3"s, "", "text/plain", true, {}, [&](bool, std::string commitId) {
msgId3 = commitId;
cv.notify_one();
});