Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
146fa009
Commit
146fa009
authored
Apr 23, 2019
by
Adrien Béraud
Browse files
jamiaccount: make getTrackedBuddyPresence const
Change-Id: I4822ef1703f55bdddce9d80541b43df512e42457
parent
291c28e4
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/jamidht/jamiaccount.cpp
View file @
146fa009
...
...
@@ -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
;
...
...
src/jamidht/jamiaccount.h
View file @
146fa009
...
...
@@ -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.
...
...
src/sip/sippresence.h
View file @
146fa009
...
...
@@ -200,7 +200,7 @@ class SIPPresence {
bool
isSupported
(
int
function
);
std
::
list
<
PresSubClient
*>
getClientSubscriptions
()
{
const
std
::
list
<
PresSubClient
*>
&
getClientSubscriptions
()
const
{
return
sub_client_list_
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment