fixed EXT-4779 Notifications about objects are saved into ".txt" or "{nobody}.txt" instead of "chat.txt" file
--HG-- branch : product-enginemeow-7.2.2
parent
bf6d1713ec
commit
e43d0f1815
|
|
@ -153,7 +153,7 @@ void LLHandlerUtil::logToIMP2P(const LLNotificationPtr& notification, bool to_fi
|
|||
{
|
||||
const std::string name = LLHandlerUtil::getSubstitutionName(notification);
|
||||
|
||||
const std::string session_name = notification->getPayload().has(
|
||||
std::string session_name = notification->getPayload().has(
|
||||
"SESSION_NAME") ? notification->getPayload()["SESSION_NAME"].asString() : name;
|
||||
|
||||
// don't create IM p2p session with objects, it's necessary condition to log
|
||||
|
|
@ -162,6 +162,12 @@ void LLHandlerUtil::logToIMP2P(const LLNotificationPtr& notification, bool to_fi
|
|||
{
|
||||
LLUUID from_id = notification->getPayload()["from_id"];
|
||||
|
||||
//*HACK for ServerObjectMessage the sesson name is really weird, see EXT-4779
|
||||
if (SERVER_OBJECT_MESSAGE == notification->getName())
|
||||
{
|
||||
session_name = "chat";
|
||||
}
|
||||
|
||||
if(to_file_only)
|
||||
{
|
||||
logToIM(IM_NOTHING_SPECIAL, session_name, name, notification->getMessage(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue