diff options
author | McCabe Maxsted | 2010-10-17 00:27:56 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-10-17 00:27:56 -0700 |
commit | 56c63afb3d2dd089c17887e1bbec1e5ffd158dd1 (patch) | |
tree | c9a5b54e3c226e4be61add7a1755848321630419 /linden/indra | |
parent | Added 'Clear History' button to the Teleport History from Phoenix (diff) | |
download | meta-impy-56c63afb3d2dd089c17887e1bbec1e5ffd158dd1.zip meta-impy-56c63afb3d2dd089c17887e1bbec1e5ffd158dd1.tar.gz meta-impy-56c63afb3d2dd089c17887e1bbec1e5ffd158dd1.tar.bz2 meta-impy-56c63afb3d2dd089c17887e1bbec1e5ffd158dd1.tar.xz |
Several minor changes to how group chat ignore works users won't see
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/llfloatergroups.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/llimview.cpp | 11 | ||||
-rw-r--r-- | linden/indra/newview/llimview.h | 6 |
3 files changed, 12 insertions, 9 deletions
diff --git a/linden/indra/newview/llfloatergroups.cpp b/linden/indra/newview/llfloatergroups.cpp index a85ce9d..79e9e31 100644 --- a/linden/indra/newview/llfloatergroups.cpp +++ b/linden/indra/newview/llfloatergroups.cpp | |||
@@ -610,9 +610,9 @@ void LLPanelGroups::applyChangesToGroups() | |||
610 | } | 610 | } |
611 | 611 | ||
612 | // chat | 612 | // chat |
613 | if (join_group_chat != (!gIMMgr->getIgnoreGroup(group_id))) | 613 | if (!join_group_chat != gIMMgr->getIgnoreGroup(group_id)) |
614 | { | 614 | { |
615 | gIMMgr->updateIgnoreGroup(group_id, join_group_chat); | 615 | gIMMgr->updateIgnoreGroup(group_id, !join_group_chat); |
616 | } | 616 | } |
617 | } | 617 | } |
618 | } | 618 | } |
diff --git a/linden/indra/newview/llimview.cpp b/linden/indra/newview/llimview.cpp index 5061197..2253404 100644 --- a/linden/indra/newview/llimview.cpp +++ b/linden/indra/newview/llimview.cpp | |||
@@ -613,11 +613,11 @@ void LLIMMgr::addMessage( | |||
613 | // create IM window as necessary | 613 | // create IM window as necessary |
614 | if(!floater) | 614 | if(!floater) |
615 | { | 615 | { |
616 | if (!mIgnoreGroupList.empty()) | 616 | if (gIMMgr->getIgnoreGroupListCount() > 0 && gAgent.isInGroup(session_id)) |
617 | { | 617 | { |
618 | // Check to see if we're blocking this group's chat | 618 | // Check to see if we're blocking this group's chat |
619 | LLGroupData *group_data = NULL; | 619 | LLGroupData* group_data = NULL; |
620 | 620 | ||
621 | // Search for this group in the agent's groups list | 621 | // Search for this group in the agent's groups list |
622 | LLDynamicArray<LLGroupData>::iterator i; | 622 | LLDynamicArray<LLGroupData>::iterator i; |
623 | 623 | ||
@@ -631,9 +631,8 @@ void LLIMMgr::addMessage( | |||
631 | } | 631 | } |
632 | 632 | ||
633 | // If the group is in our list then return | 633 | // If the group is in our list then return |
634 | if (group_data && getIgnoreGroup(group_data->mID)) | 634 | if (group_data && gIMMgr->getIgnoreGroup(group_data->mID)) |
635 | { | 635 | { |
636 | // llinfos << "ignoring chat from group " << group_data->mID << llendl; | ||
637 | return; | 636 | return; |
638 | } | 637 | } |
639 | } | 638 | } |
@@ -1383,7 +1382,7 @@ void LLIMMgr::saveIgnoreGroup() | |||
1383 | } | 1382 | } |
1384 | } | 1383 | } |
1385 | 1384 | ||
1386 | void LLIMMgr::updateIgnoreGroup(const LLUUID& group_id, const bool& ignore) | 1385 | void LLIMMgr::updateIgnoreGroup(const LLUUID& group_id, bool ignore) |
1387 | { | 1386 | { |
1388 | if (group_id.notNull()) | 1387 | if (group_id.notNull()) |
1389 | { | 1388 | { |
diff --git a/linden/indra/newview/llimview.h b/linden/indra/newview/llimview.h index 8f665d2..2539203 100644 --- a/linden/indra/newview/llimview.h +++ b/linden/indra/newview/llimview.h | |||
@@ -174,7 +174,7 @@ public: | |||
174 | 174 | ||
175 | void loadIgnoreGroup(); | 175 | void loadIgnoreGroup(); |
176 | void saveIgnoreGroup(); | 176 | void saveIgnoreGroup(); |
177 | void updateIgnoreGroup(const LLUUID& group_id, const bool& ignore); | 177 | void updateIgnoreGroup(const LLUUID& group_id, bool ignore); |
178 | // Returns true if group chat is ignored for the UUID, false if not | 178 | // Returns true if group chat is ignored for the UUID, false if not |
179 | bool getIgnoreGroup(const LLUUID& group_id); | 179 | bool getIgnoreGroup(const LLUUID& group_id); |
180 | 180 | ||
@@ -219,6 +219,10 @@ private: | |||
219 | LLSD mPendingAgentListUpdates; | 219 | LLSD mPendingAgentListUpdates; |
220 | 220 | ||
221 | std::list<LLUUID> mIgnoreGroupList; | 221 | std::list<LLUUID> mIgnoreGroupList; |
222 | |||
223 | public: | ||
224 | |||
225 | S32 getIgnoreGroupListCount() { return mIgnoreGroupList.size(); } | ||
222 | }; | 226 | }; |
223 | 227 | ||
224 | 228 | ||