Commit 146fa009 authored by Adrien Béraud's avatar Adrien Béraud

jamiaccount: make getTrackedBuddyPresence const

Change-Id: I4822ef1703f55bdddce9d80541b43df512e42457
parent 291c28e4
......@@ -2059,7 +2059,7 @@ JamiAccount::trackPresence(const dht::InfoHash& h, BuddyInfo& buddy)
}
std::map<std::string, bool>
JamiAccount::getTrackedBuddyPresence()
JamiAccount::getTrackedBuddyPresence() const
{
std::lock_guard<std::mutex> lock(buddyInfoMtx);
std::map<std::string, bool> presence_info;
......
......@@ -161,7 +161,7 @@ class JamiAccount : public SIPAccountBase {
*
* @return map of buddy_uri to bool (online or not)
*/
std::map<std::string, bool> getTrackedBuddyPresence();
std::map<std::string, bool> getTrackedBuddyPresence() const;
/**
* Connect to the DHT.
......
......@@ -200,7 +200,7 @@ class SIPPresence {
bool isSupported(int function);
std::list< PresSubClient *> getClientSubscriptions() {
const std::list< PresSubClient *>& getClientSubscriptions() const {
return sub_client_list_;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment