SL-12129 FIXED Object IMs doesn't react to an instant message from an object.
parent
20c21bfcb3
commit
96c78187c1
|
|
@ -62,6 +62,8 @@
|
|||
#pragma warning (disable:4702)
|
||||
#endif
|
||||
|
||||
extern void on_new_message(const LLSD& msg);
|
||||
|
||||
// Strip out "Resident" for display, but only if the message came from a user
|
||||
// (rather than a script)
|
||||
static std::string clean_name_from_im(const std::string& name, EInstantMessage type)
|
||||
|
|
@ -1007,6 +1009,14 @@ void LLIMProcessing::processNewMessage(LLUUID from_id,
|
|||
}
|
||||
|
||||
LLNotificationsUI::LLNotificationManager::instance().onChat(chat, args);
|
||||
if (message != "")
|
||||
{
|
||||
LLSD msg_notify;
|
||||
msg_notify["session_id"] = LLUUID();
|
||||
msg_notify["from_id"] = chat.mFromID;
|
||||
msg_notify["source_type"] = chat.mSourceType;
|
||||
on_new_message(msg_notify);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue