Skip to content
Snippets Groups Projects
Commit 4fcf7569 authored by Andrew Polunin's avatar Andrew Polunin
Browse files

Partial fix for normal bug EXT-2619 \"Invalid IM session is opened when...

Partial fix for normal bug EXT-2619 \"Invalid IM session is opened when resident ejects a member from group\": a toast was implemented, but adding a record to the Group Chat history was not because of known issue EXT-2884 \"Initiation of a voice call should not bring text chat (p2p, ad-hoc, group)\".

--HG--
branch : product-engine
parent 0b129e6e
No related branches found
No related tags found
No related merge requests found
...@@ -1101,10 +1101,33 @@ void LLPanelGroupMembersSubTab::handleEjectMembers() ...@@ -1101,10 +1101,33 @@ void LLPanelGroupMembersSubTab::handleEjectMembers()
mMembersList->deleteSelectedItems(); mMembersList->deleteSelectedItems();
sendEjectNotifications(mGroupID, selected_members);
LLGroupMgr::getInstance()->sendGroupMemberEjects(mGroupID, LLGroupMgr::getInstance()->sendGroupMemberEjects(mGroupID,
selected_members); selected_members);
} }
void LLPanelGroupMembersSubTab::sendEjectNotifications(const LLUUID& group_id, const std::vector<LLUUID>& selected_members)
{
LLGroupMgrGroupData* group_data = LLGroupMgr::getInstance()->getGroupData(group_id);
if (group_data)
{
for (std::vector<LLUUID>::const_iterator i = selected_members.begin(); i != selected_members.end(); ++i)
{
LLSD args;
std::string name;
gCacheName->getFullName(*i, name);
args["AVATAR_NAME"] = name;
args["GROUP_NAME"] = group_data->mName;
LLNotifications::instance().add(LLNotification::Params("EjectAvatarFromGroup").substitutions(args));
}
}
}
void LLPanelGroupMembersSubTab::handleRoleCheck(const LLUUID& role_id, void LLPanelGroupMembersSubTab::handleRoleCheck(const LLUUID& role_id,
LLRoleMemberChangeType type) LLRoleMemberChangeType type)
{ {
......
...@@ -170,6 +170,7 @@ class LLPanelGroupMembersSubTab : public LLPanelGroupSubTab ...@@ -170,6 +170,7 @@ class LLPanelGroupMembersSubTab : public LLPanelGroupSubTab
static void onEjectMembers(void*); static void onEjectMembers(void*);
void handleEjectMembers(); void handleEjectMembers();
void sendEjectNotifications(const LLUUID& group_id, const std::vector<LLUUID>& selected_members);
static void onRoleCheck(LLUICtrl* check, void* user_data); static void onRoleCheck(LLUICtrl* check, void* user_data);
void handleRoleCheck(const LLUUID& role_id, void handleRoleCheck(const LLUUID& role_id,
......
...@@ -1170,6 +1170,13 @@ Eject [AVATAR_NAME] from your land? ...@@ -1170,6 +1170,13 @@ Eject [AVATAR_NAME] from your land?
yestext="Eject"/> yestext="Eject"/>
</notification> </notification>
<notification
icon="alertmodal.tga"
name="EjectAvatarFromGroup"
type="notify">
You ejected [AVATAR_NAME] from group [GROUP_NAME]
</notification>
<notification <notification
icon="alertmodal.tga" icon="alertmodal.tga"
name="AcquireErrorTooManyObjects" name="AcquireErrorTooManyObjects"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment