fixed bug EXT-4445 [BSI] Can start an IM session with myself and offer items via context menu in group chat participants list

--HG--
branch : product-engine
meow-7.2.2
Denis Serdjuk 2010-01-19 19:49:39 +02:00
parent a2d083f3ce
commit 1d9237e299
2 changed files with 7 additions and 1 deletions

View File

@ -582,7 +582,7 @@ void LLParticipantList::LLParticipantListMenu::moderateVoiceOtherParticipants(co
bool LLParticipantList::LLParticipantListMenu::enableContextMenuItem(const LLSD& userdata)
{
std::string item = userdata.asString();
if (item == "can_mute_text" || "can_block" == item)
if (item == "can_mute_text" || "can_block" == item || "can_share" == item || "can_im" == item)
{
return mUUIDs.front() != gAgentID;
}

View File

@ -47,6 +47,9 @@
name="IM">
<menu_item_call.on_click
function="Avatar.IM" />
<menu_item_call.on_enable
function="ParticipantList.EnableItem"
parameter="can_im" />
</menu_item_call>
<menu_item_call
label="Call"
@ -65,6 +68,9 @@
name="Share">
<menu_item_call.on_click
function="Avatar.Share" />
<menu_item_call.on_enable
function="ParticipantList.EnableItem"
parameter="can_share" />
</menu_item_call>
<menu_item_call
label="Pay"