diff options
author | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-05-15 11:16:27 +0300 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-05-15 11:16:27 +0300 |
commit | bccc10db9a90d365c353baebf443fde2030ce970 (patch) | |
tree | 2c2e1fd94b29667a809f8d7285d049f5ff5d424d /indra/newview/llcommunicationchannel.cpp | |
parent | 531cd34f670170ade57f8813fe48012b61a1d3c2 (diff) | |
parent | bb3c36f5cbc0c3b542045fd27255eee24e03da22 (diff) |
Merge branch 'main' into marchcat/x-b-merge
# Conflicts:
# autobuild.xml
# indra/cmake/ConfigurePkgConfig.cmake
# indra/cmake/ICU4C.cmake
# indra/media_plugins/gstreamer010/llmediaimplgstreamer_syms.cpp
# indra/media_plugins/gstreamer010/llmediaimplgstreamer_syms.h
# indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h
# indra/media_plugins/gstreamer010/llmediaimplgstreamervidplug.cpp
# indra/media_plugins/gstreamer010/llmediaimplgstreamervidplug.h
# indra/media_plugins/gstreamer010/media_plugin_gstreamer010.cpp
# indra/newview/llappviewerlinux_api.h
# indra/newview/llappviewerlinux_api_dbus.cpp
# indra/newview/llappviewerlinux_api_dbus.h
# indra/newview/llfloateremojipicker.cpp
# indra/newview/lloutfitslist.cpp
Diffstat (limited to 'indra/newview/llcommunicationchannel.cpp')
-rw-r--r-- | indra/newview/llcommunicationchannel.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/indra/newview/llcommunicationchannel.cpp b/indra/newview/llcommunicationchannel.cpp index cf98b56b4c..074d60d879 100644 --- a/indra/newview/llcommunicationchannel.cpp +++ b/indra/newview/llcommunicationchannel.cpp @@ -1,4 +1,4 @@ -/** +/** * @file llcommunicationchannel.cpp * @brief Implementation of llcommunicationchannel * @author Stinson@lindenlab.com @@ -38,8 +38,8 @@ LLCommunicationChannel::LLCommunicationChannel(const std::string& pName, const std::string& pParentName) - : LLNotificationChannel(pName, pParentName, filterByDoNotDisturbStatus) - , mHistory() + : LLNotificationChannel(pName, pParentName, filterByDoNotDisturbStatus) + , mHistory() { } @@ -49,7 +49,7 @@ LLCommunicationChannel::~LLCommunicationChannel() bool LLCommunicationChannel::filterByDoNotDisturbStatus(LLNotificationPtr) { - return !gAgent.isDoNotDisturb(); + return !gAgent.isDoNotDisturb(); } S32 LLCommunicationChannel::getHistorySize() const @@ -59,12 +59,12 @@ S32 LLCommunicationChannel::getHistorySize() const LLCommunicationChannel::history_list_t::const_iterator LLCommunicationChannel::beginHistory() const { - return mHistory.begin(); + return mHistory.begin(); } LLCommunicationChannel::history_list_t::const_iterator LLCommunicationChannel::endHistory() const { - return mHistory.end(); + return mHistory.end(); } LLCommunicationChannel::history_list_t::iterator LLCommunicationChannel::beginHistory() @@ -79,7 +79,7 @@ LLCommunicationChannel::history_list_t::iterator LLCommunicationChannel::endHist void LLCommunicationChannel::clearHistory() { - mHistory.clear(); + mHistory.clear(); } void LLCommunicationChannel::removeItemFromHistory(LLNotificationPtr p) @@ -95,19 +95,19 @@ void LLCommunicationChannel::removeItemFromHistory(LLNotificationPtr p) } } -void LLCommunicationChannel::onDelete(LLNotificationPtr p) +void LLCommunicationChannel::onDelete(LLNotificationPtr p) { removeItemFromHistory(p); } void LLCommunicationChannel::onFilterFail(LLNotificationPtr pNotificationPtr) { - std::string notificationType = pNotificationPtr->getType(); - if (((notificationType == "groupnotify") - || (notificationType == "offer") - || (notificationType == "notifytoast")) + std::string notificationType = pNotificationPtr->getType(); + if (((notificationType == "groupnotify") + || (notificationType == "offer") + || (notificationType == "notifytoast")) && !pNotificationPtr->isCancelled()) - { - mHistory.insert(history_list_t::value_type(pNotificationPtr->getDate(), pNotificationPtr)); - } + { + mHistory.insert(history_list_t::value_type(pNotificationPtr->getDate(), pNotificationPtr)); + } } |