Skip to content
Snippets Groups Projects
Commit 072eafba authored by Sébastien Blin's avatar Sébastien Blin
Browse files

presence: show connected with self

GitLab: #1589
Change-Id: Iaa753a5ed9a690a63bba75442a4e04d1c9d9218c
parent 201f3182
No related branches found
No related tags found
No related merge requests found
......@@ -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 (...) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment