diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-10-18 23:59:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-18 23:59:17 +0300 |
commit | 0f742298deab3d2718a532fe36a473d2d3a6b38c (patch) | |
tree | e5bb1724ebe0db3b5f626ceb34dd9020f3816588 /indra/newview/llgroupactions.cpp | |
parent | ddb2c93818fe1132116c6efaebc9bd3afd012187 (diff) |
SL-20376 Clarify group membership status and leave-group confirmation dialog
Diffstat (limited to 'indra/newview/llgroupactions.cpp')
-rw-r--r-- | indra/newview/llgroupactions.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llgroupactions.cpp b/indra/newview/llgroupactions.cpp index 5db8424b99..1cdac686d7 100644 --- a/indra/newview/llgroupactions.cpp +++ b/indra/newview/llgroupactions.cpp @@ -366,7 +366,16 @@ void LLGroupActions::processLeaveGroupDataResponse(const LLUUID group_id) args["GROUP"] = gdatap->mName; LLSD payload; payload["group_id"] = group_id; - LLNotificationsUtil::add("GroupLeaveConfirmMember", args, payload, onLeaveGroup); + if (gdatap->mMembershipFee > 0) + { + args["COST"] = gdatap->mMembershipFee; + LLNotificationsUtil::add("GroupLeaveConfirmMember", args, payload, onLeaveGroup); + } + else + { + LLNotificationsUtil::add("GroupLeaveConfirmMemberNoFee", args, payload, onLeaveGroup); + } + } // static |