1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-03 14:25:38 +02:00

presence: show connected with self

GitLab: #1589
Change-Id: Iaa753a5ed9a690a63bba75442a4e04d1c9d9218c
This commit is contained in:
Sébastien Blin 2024-03-04 11:30:06 -05:00
parent 201f3182ca
commit 072eafbaf4

View file

@ -613,7 +613,7 @@ UtilsAdapter::getContactPresence(const QString& accountId, const QString& uri)
{
try {
if (lrcInstance_->getAccountInfo(accountId).profileInfo.uri == uri)
return true; // It's the same account
return 2; // It's the same account
auto info = lrcInstance_->getAccountInfo(accountId).contactModel->getContact(uri);
return info.presence;
} catch (...) {