diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-07-08 08:11:26 +0300 | 
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-07-08 08:15:36 +0300 | 
| commit | d996497c5e0a45e1bc68a06f4d4cdab5f706a53b (patch) | |
| tree | 34e5d4041de0ff0d78aa0fe32c01722772b5459c /indra | |
| parent | 77a8bd878bad5a28472eda8b8c7dff33ca5e3d10 (diff) | |
SL-15354 Fixed object IMs not respecting chat settings
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llfloaterimnearbychathandler.cpp | 12 | 
1 files changed, 11 insertions, 1 deletions
| diff --git a/indra/newview/llfloaterimnearbychathandler.cpp b/indra/newview/llfloaterimnearbychathandler.cpp index ef7ec9e950..b208ac17e7 100644 --- a/indra/newview/llfloaterimnearbychathandler.cpp +++ b/indra/newview/llfloaterimnearbychathandler.cpp @@ -643,8 +643,18 @@ void LLFloaterIMNearbyChatHandler::processChat(const LLChat& chat_msg,              }          } +        std::string user_preferences; +        if (chat_msg.mSourceType == CHAT_SOURCE_OBJECT) +        { +            user_preferences = gSavedSettings.getString("NotificationObjectIMOptions"); +        } +        else +        { +            user_preferences = gSavedSettings.getString("NotificationNearbyChatOptions"); +        } +          //Will show toast when chat preference is set -        if((gSavedSettings.getString("NotificationNearbyChatOptions") == "toast") || !nearby_chat->isMessagePaneExpanded()) +        if((user_preferences == "toast") || !nearby_chat->isMessagePaneExpanded())          {              // Add a nearby chat toast.              LLUUID id; | 
