Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
9f59160b
Commit
9f59160b
authored
17 years ago
by
Kelly Washington
Browse files
Options
Downloads
Patches
Plain Diff
merge -r61253:61354 branches/friends_1-15 to release, minus some spam.
parent
b69bf6e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llcallingcard.cpp
+30
-1
30 additions, 1 deletion
indra/newview/llcallingcard.cpp
with
30 additions
and
1 deletion
indra/newview/llcallingcard.cpp
+
30
−
1
View file @
9f59160b
...
@@ -249,12 +249,28 @@ S32 LLAvatarTracker::addBuddyList(const LLAvatarTracker::buddy_map_t& buds)
...
@@ -249,12 +249,28 @@ S32 LLAvatarTracker::addBuddyList(const LLAvatarTracker::buddy_map_t& buds)
for
(
buddy_map_t
::
const_iterator
itr
=
buds
.
begin
();
itr
!=
buds
.
end
();
++
itr
)
for
(
buddy_map_t
::
const_iterator
itr
=
buds
.
begin
();
itr
!=
buds
.
end
();
++
itr
)
{
{
agent_id
=
(
*
itr
).
first
;
agent_id
=
(
*
itr
).
first
;
if
(
mBuddyInfo
.
find
(
agent_id
)
==
mBuddyInfo
.
end
())
buddy_map_t
::
const_iterator
existing_buddy
=
mBuddyInfo
.
find
(
agent_id
);
if
(
existing_buddy
==
mBuddyInfo
.
end
())
{
{
++
new_buddy_count
;
++
new_buddy_count
;
mBuddyInfo
[
agent_id
]
=
(
*
itr
).
second
;
mBuddyInfo
[
agent_id
]
=
(
*
itr
).
second
;
gCacheName
->
getName
(
agent_id
,
first
,
last
);
gCacheName
->
getName
(
agent_id
,
first
,
last
);
mModifyMask
|=
LLFriendObserver
::
ADD
;
mModifyMask
|=
LLFriendObserver
::
ADD
;
lldebugs
<<
"Added buddy "
<<
agent_id
<<
", "
<<
(
mBuddyInfo
[
agent_id
]
->
isOnline
()
?
"Online"
:
"Offline"
)
<<
", TO: "
<<
mBuddyInfo
[
agent_id
]
->
getRightsGrantedTo
()
<<
", FROM: "
<<
mBuddyInfo
[
agent_id
]
->
getRightsGrantedFrom
()
<<
llendl
;
}
else
{
LLRelationship
*
e_r
=
(
*
existing_buddy
).
second
;
LLRelationship
*
n_r
=
(
*
itr
).
second
;
llwarns
<<
"!! Add buddy for existing buddy: "
<<
agent_id
<<
" ["
<<
(
e_r
->
isOnline
()
?
"Online"
:
"Offline"
)
<<
"->"
<<
(
n_r
->
isOnline
()
?
"Online"
:
"Offline"
)
<<
", "
<<
e_r
->
getRightsGrantedTo
()
<<
"->"
<<
n_r
->
getRightsGrantedTo
()
<<
", "
<<
e_r
->
getRightsGrantedTo
()
<<
"->"
<<
n_r
->
getRightsGrantedTo
()
<<
"]"
<<
llendl
;
}
}
}
}
...
@@ -305,6 +321,12 @@ void LLAvatarTracker::setBuddyOnline(const LLUUID& id, bool is_online)
...
@@ -305,6 +321,12 @@ void LLAvatarTracker::setBuddyOnline(const LLUUID& id, bool is_online)
{
{
info
->
online
(
is_online
);
info
->
online
(
is_online
);
mModifyMask
|=
LLFriendObserver
::
ONLINE
;
mModifyMask
|=
LLFriendObserver
::
ONLINE
;
lldebugs
<<
"Set buddy "
<<
id
<<
(
is_online
?
" Online"
:
" Offline"
)
<<
llendl
;
}
else
{
llwarns
<<
"!! No buddy info found for "
<<
id
<<
", setting to "
<<
(
is_online
?
"Online"
:
"Offline"
)
<<
llendl
;
}
}
}
}
...
@@ -578,6 +600,7 @@ void LLAvatarTracker::processNotify(LLMessageSystem* msg, bool online)
...
@@ -578,6 +600,7 @@ void LLAvatarTracker::processNotify(LLMessageSystem* msg, bool online)
S32
count
=
msg
->
getNumberOfBlocksFast
(
_PREHASH_AgentBlock
);
S32
count
=
msg
->
getNumberOfBlocksFast
(
_PREHASH_AgentBlock
);
BOOL
chat_notify
=
gSavedSettings
.
getBOOL
(
"ChatOnlineNotification"
);
BOOL
chat_notify
=
gSavedSettings
.
getBOOL
(
"ChatOnlineNotification"
);
lldebugs
<<
"Received "
<<
count
<<
" online notifications **** "
<<
llendl
;
if
(
count
>
0
)
if
(
count
>
0
)
{
{
LLUUID
agent_id
;
LLUUID
agent_id
;
...
@@ -608,6 +631,12 @@ void LLAvatarTracker::processNotify(LLMessageSystem* msg, bool online)
...
@@ -608,6 +631,12 @@ void LLAvatarTracker::processNotify(LLMessageSystem* msg, bool online)
}
}
}
}
}
}
else
{
llwarns
<<
"Received online notification for unknown buddy: "
<<
agent_id
<<
" is "
<<
(
online
?
"ONLINE"
:
"OFFLINE"
)
<<
llendl
;
}
if
(
tracking_id
==
agent_id
)
if
(
tracking_id
==
agent_id
)
{
{
// we were tracking someone who went offline
// we were tracking someone who went offline
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment