From 00b47c39659b682e7528e6f89d6e0b77da565230 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois-Simon=20Fauteux-Chapleau?=
 <francois-simon.fauteux-chapleau@savoirfairelinux.com>
Date: Thu, 1 May 2025 14:50:40 -0400
Subject: [PATCH] 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
---
 test/unitTest/presence/presence.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/unitTest/presence/presence.cpp b/test/unitTest/presence/presence.cpp
index 6057a32b9..121b5f474 100644
--- a/test/unitTest/presence/presence.cpp
+++ b/test/unitTest/presence/presence.cpp
@@ -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);
-- 
GitLab