mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
conversation: check author in countInteractionsSince
This allow us to only count interactions since last message written for multi-device. Change-Id: I9c46eab672719dbdc2e522bbf208f85adfb730f4 GitLab: https://git.jami.net/savoirfairelinux/ring-project/-/issues/1282
This commit is contained in:
@ -4670,9 +4670,11 @@ ConversationTest::testCountInteractions()
|
||||
});
|
||||
CPPUNIT_ASSERT(cv.wait_for(lk, std::chrono::seconds(30), [&] { return !msgId3.empty(); }));
|
||||
|
||||
CPPUNIT_ASSERT(DRing::countInteractions(aliceId, convId, "", "") == 4 /* 3 + initial */);
|
||||
CPPUNIT_ASSERT(DRing::countInteractions(aliceId, convId, msgId3, "") == 0);
|
||||
CPPUNIT_ASSERT(DRing::countInteractions(aliceId, convId, msgId2, "") == 1);
|
||||
CPPUNIT_ASSERT(DRing::countInteractions(aliceId, convId, "", "", "") == 4 /* 3 + initial */);
|
||||
CPPUNIT_ASSERT(DRing::countInteractions(aliceId, convId, "", "", aliceAccount->getUsername())
|
||||
== 0);
|
||||
CPPUNIT_ASSERT(DRing::countInteractions(aliceId, convId, msgId3, "", "") == 0);
|
||||
CPPUNIT_ASSERT(DRing::countInteractions(aliceId, convId, msgId2, "", "") == 1);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user