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
5238a39b
Commit
5238a39b
authored
12 years ago
by
Merov Linden
Browse files
Options
Downloads
Patches
Plain Diff
CHUI-552 : Fixed : Filter out participant creation with the same id than the session id
parent
1a9a5508
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/llparticipantlist.cpp
+8
-5
8 additions, 5 deletions
indra/newview/llparticipantlist.cpp
with
8 additions
and
5 deletions
indra/newview/llparticipantlist.cpp
+
8
−
5
View file @
5238a39b
...
@@ -366,8 +366,11 @@ bool LLParticipantList::onSpeakerMuteEvent(LLPointer<LLOldEvents::LLEvent> event
...
@@ -366,8 +366,11 @@ bool LLParticipantList::onSpeakerMuteEvent(LLPointer<LLOldEvents::LLEvent> event
void
LLParticipantList
::
addAvatarIDExceptAgent
(
const
LLUUID
&
avatar_id
)
void
LLParticipantList
::
addAvatarIDExceptAgent
(
const
LLUUID
&
avatar_id
)
{
{
// Do not add if already in there or excluded for some reason
// Do not add if already in there, is the session id (hence not an avatar) or excluded for some reason
if
(
findParticipant
(
avatar_id
))
return
;
if
(
findParticipant
(
avatar_id
)
||
(
avatar_id
==
mUUID
))
{
return
;
}
bool
is_avatar
=
LLVoiceClient
::
getInstance
()
->
isParticipantAvatar
(
avatar_id
);
bool
is_avatar
=
LLVoiceClient
::
getInstance
()
->
isParticipantAvatar
(
avatar_id
);
...
@@ -391,7 +394,7 @@ void LLParticipantList::addAvatarIDExceptAgent(const LLUUID& avatar_id)
...
@@ -391,7 +394,7 @@ void LLParticipantList::addAvatarIDExceptAgent(const LLUUID& avatar_id)
// *TODO : Need to update the online/offline status of the participant
// *TODO : Need to update the online/offline status of the participant
// Hack for this: LLAvatarTracker::instance().isBuddyOnline(avatar_id))
// Hack for this: LLAvatarTracker::instance().isBuddyOnline(avatar_id))
// Add the participant model to the session's children list
// Add the participant model to the session's children list
addParticipant
(
participant
);
addParticipant
(
participant
);
...
@@ -413,12 +416,12 @@ void LLParticipantList::adjustParticipant(const LLUUID& speaker_id)
...
@@ -413,12 +416,12 @@ void LLParticipantList::adjustParticipant(const LLUUID& speaker_id)
bool
LLParticipantList
::
SpeakerAddListener
::
handleEvent
(
LLPointer
<
LLOldEvents
::
LLEvent
>
event
,
const
LLSD
&
userdata
)
bool
LLParticipantList
::
SpeakerAddListener
::
handleEvent
(
LLPointer
<
LLOldEvents
::
LLEvent
>
event
,
const
LLSD
&
userdata
)
{
{
/**
/**
* We need to filter speaking objects. These objects shouldn't appear in the list
* We need to filter speaking objects. These objects shouldn't appear in the list
.
* @see LLFloaterChat::addChat() in llviewermessage.cpp to get detailed call hierarchy
* @see LLFloaterChat::addChat() in llviewermessage.cpp to get detailed call hierarchy
*/
*/
const
LLUUID
&
speaker_id
=
event
->
getValue
().
asUUID
();
const
LLUUID
&
speaker_id
=
event
->
getValue
().
asUUID
();
LLPointer
<
LLSpeaker
>
speaker
=
mParent
.
mSpeakerMgr
->
findSpeaker
(
speaker_id
);
LLPointer
<
LLSpeaker
>
speaker
=
mParent
.
mSpeakerMgr
->
findSpeaker
(
speaker_id
);
if
(
speaker
.
isNull
()
||
speaker
->
mType
==
LLSpeaker
::
SPEAKER_OBJECT
)
if
(
speaker
.
isNull
()
||
(
speaker
->
mType
==
LLSpeaker
::
SPEAKER_OBJECT
)
)
{
{
return
false
;
return
false
;
}
}
...
...
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