diff options
author | Dmitry Zaporozhan <dzaporozhan@productengine.com> | 2010-04-09 17:34:01 +0300 |
---|---|---|
committer | Dmitry Zaporozhan <dzaporozhan@productengine.com> | 2010-04-09 17:34:01 +0300 |
commit | a782eaf36e5cd4edc74ade855db8582213ae7c0f (patch) | |
tree | 829cd6849b2c9fce96b37cf1f9d8d9a6574c3c4a /indra/newview/llviewermessage.cpp | |
parent | cf31494b5053283b4d445b0c564b5e7d57af2a18 (diff) |
Fixed normal bug EXT-4766 - System notifications in nearby chat has default avatar icon and behave like sent from object
Updated nearby toast to display system icon for system message.
Reviewed by Vadim Savchuk - https://codereview.productengine.com/secondlife/r/208/
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rw-r--r-- | indra/newview/llviewermessage.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index ef3ee32f11..d8a3932a22 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -2392,10 +2392,13 @@ void process_improved_im(LLMessageSystem *msg, void **user_data) chat.mFromID = from_id ^ gAgent.getSessionID(); } + chat.mSourceType = CHAT_SOURCE_OBJECT; + if(SYSTEM_FROM == name) { // System's UUID is NULL (fixes EXT-4766) chat.mFromID = LLUUID::null; + chat.mSourceType = CHAT_SOURCE_SYSTEM; } LLSD query_string; @@ -2412,7 +2415,6 @@ void process_improved_im(LLMessageSystem *msg, void **user_data) chat.mURL = link.str(); chat.mText = message; - chat.mSourceType = CHAT_SOURCE_OBJECT; // Note: lie to Nearby Chat, pretending that this is NOT an IM, because // IMs from obejcts don't open IM sessions. |