unitTest: fix presence status note test

As of commit 68fc552, presence notes are only sent to contacts (as
opposed to all peers the user is connected to).

GitLab: #1125
Change-Id: I454c6bc880a65ad99747169cfc020a7ea7329de9
This commit is contained in:
François-Simon Fauteux-Chapleau
2025-05-01 14:50:40 -04:00
committed by Adrien Béraud
parent 744b4a8af9
commit 00b47c3965

View File

@ -271,6 +271,10 @@ PresenceTest::testPresenceStatusNote()
auto carlaAccount = Manager::instance().getAccount<JamiAccount>(carlaId);
auto carlaUri = carlaAccount->getUsername();
// NOTE: Presence status notes are only sent to contacts.
aliceAccount->addContact(bobUri);
aliceAccount->addContact(carlaUri);
// Track Presence
aliceAccount->trackBuddyPresence(bobUri, true);
bobAccount->trackBuddyPresence(aliceUri, true);