CHUI-774 FIXED Play a sound even if the conversation floater is open and conversation with user is the active.
parent
1b464fae87
commit
f79f9f111b
|
|
@ -96,8 +96,21 @@ bool LLOfferHandler::processNotification(const LLNotificationPtr& notification)
|
|||
|
||||
LLUUID from_id = notification->getPayload()["from_id"];
|
||||
|
||||
//Will not play a notification sound for inventory and teleport offer based upon chat preference
|
||||
bool playSound = (!notification->isDND()
|
||||
&& ((notification->getName() == "UserGiveItem"
|
||||
&& gSavedSettings.getBOOL("PlaySoundInventoryOffer"))
|
||||
|| (notification->getName() == "TeleportOffered"
|
||||
&& gSavedSettings.getBOOL("PlaySoundTeleportOffer"))));
|
||||
|
||||
if(playSound)
|
||||
{
|
||||
notification->playSound();
|
||||
}
|
||||
|
||||
LLHandlerUtil::spawnIMSession(name, from_id);
|
||||
LLHandlerUtil::addNotifPanelToIM(notification);
|
||||
|
||||
}
|
||||
|
||||
if (!notification->canShowToast())
|
||||
|
|
@ -119,17 +132,6 @@ bool LLOfferHandler::processNotification(const LLNotificationPtr& notification)
|
|||
if(channel)
|
||||
channel->addToast(p);
|
||||
|
||||
//Will not play a notification sound for inventory and teleport offer based upon chat preference
|
||||
bool playSound = (!notification->isDND()
|
||||
&& ((notification->getName() == "UserGiveItem"
|
||||
&& gSavedSettings.getBOOL("PlaySoundInventoryOffer"))
|
||||
|| (notification->getName() == "TeleportOffered"
|
||||
&& gSavedSettings.getBOOL("PlaySoundTeleportOffer"))));
|
||||
|
||||
if(playSound)
|
||||
{
|
||||
notification->playSound();
|
||||
}
|
||||
}
|
||||
|
||||
if (notification->canLogToIM())
|
||||
|
|
|
|||
Loading…
Reference in New Issue