diff options
| author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2019-10-17 14:48:31 +0300 | 
|---|---|---|
| committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2019-10-17 14:48:31 +0300 | 
| commit | 96c78187c19352159e4bd1ea111a2764c13d01ea (patch) | |
| tree | 0104193b881236a64485444a5089f80549e3fd85 | |
| parent | 20c21bfcb359ab59bb334807907f03402a4b6ca1 (diff) | |
SL-12129 FIXED Object IMs doesn't react to an instant message from an object.
| -rw-r--r-- | indra/newview/llimprocessing.cpp | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llimprocessing.cpp b/indra/newview/llimprocessing.cpp index 24f40c8182..0294b17991 100644 --- a/indra/newview/llimprocessing.cpp +++ b/indra/newview/llimprocessing.cpp @@ -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); +                }              }  | 
