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
a7db93cb
Commit
a7db93cb
authored
10 years ago
by
andreykproductengine
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-4182 FIXED The group ban list always appears empty
parent
f938c7f7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llgroupmgr.cpp
+13
-20
13 additions, 20 deletions
indra/newview/llgroupmgr.cpp
with
13 additions
and
20 deletions
indra/newview/llgroupmgr.cpp
+
13
−
20
View file @
a7db93cb
...
...
@@ -1868,8 +1868,8 @@ class GroupBanDataResponder : public LLHTTPClient::Responder
public:
GroupBanDataResponder
(
const
LLUUID
&
gropup_id
,
BOOL
force_refresh
=
false
);
virtual
~
GroupBanDataResponder
()
{}
virtual
void
result
(
const
LLSD
&
pContent
);
virtual
void
errorWithContent
(
U32
pStatus
,
const
std
::
string
&
pReason
,
const
LLSD
&
pContent
);
virtual
void
httpSuccess
(
);
virtual
void
httpFailure
(
);
private
:
LLUUID
mGroupID
;
BOOL
mForceRefresh
;
...
...
@@ -1880,34 +1880,27 @@ GroupBanDataResponder::GroupBanDataResponder(const LLUUID& gropup_id, BOOL force
mForceRefresh
(
force_refresh
)
{}
void
GroupBanDataResponder
::
errorWithContent
(
U32
pStatus
,
const
std
::
string
&
pReason
,
const
LLSD
&
pContent
)
void
GroupBanDataResponder
::
httpFailure
(
)
{
LL_WARNS
(
"GrpMgr"
)
<<
"Error receiving group member data [status:"
<<
p
Status
<<
"]: "
<<
p
Content
<<
LL_ENDL
;
<<
m
Status
<<
"]: "
<<
m
Content
<<
LL_ENDL
;
}
void
GroupBanDataResponder
::
result
(
const
LLSD
&
content
)
void
GroupBanDataResponder
::
httpSuccess
(
)
{
if
(
c
ontent
.
size
())
if
(
mC
ontent
.
size
())
{
if
(
c
ontent
.
has
(
"ban_list"
))
if
(
mC
ontent
.
has
(
"ban_list"
))
{
// group data received
LLGroupMgr
::
processGroupBanRequest
(
content
);
}
// no group data received, this is either CREATE or DELETE operation
// complete confirmation. Local data may be obsolete.
else
if
(
mForceRefresh
)
{
// providing mGroupId and not extracting it from content since it is not
// included into CREATE and DELETE responses
LLGroupMgr
::
getInstance
()
->
sendGroupBanRequest
(
LLGroupMgr
::
REQUEST_GET
,
mGroupID
);
// group ban data received
LLGroupMgr
::
processGroupBanRequest
(
mContent
);
mForceRefresh
=
false
;
}
}
else
if
(
mForceRefresh
)
{
LL_WARNS
(
"GrpMgr"
)
<<
"No group member data received."
<<
LL_ENDL
;
return
;
// no ban data received, refreshing data after successful operation
LLGroupMgr
::
getInstance
()
->
sendGroupBanRequest
(
LLGroupMgr
::
REQUEST_GET
,
mGroupID
)
;
}
}
...
...
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