summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermedia_streamingaudio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llviewermedia_streamingaudio.cpp')
-rw-r--r--indra/newview/llviewermedia_streamingaudio.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llviewermedia_streamingaudio.cpp b/indra/newview/llviewermedia_streamingaudio.cpp
index 15b6e3f802..6e3d84b3bf 100644
--- a/indra/newview/llviewermedia_streamingaudio.cpp
+++ b/indra/newview/llviewermedia_streamingaudio.cpp
@@ -118,8 +118,12 @@ int LLStreamingAudio_MediaPlugins::isPlaying()
auto nowPlaying = mMediaPlugin->getMediaNowPlaying();
if (mNowPlaying != nowPlaying)
{
- LLNotificationsUI::LLNotificationManager::instance().onChat(LLChat{llformat("Now playing %s.", nowPlaying.c_str())}, LLSD{});
+ mTitle = mMediaPlugin->getMediaTitle();
mNowPlaying = nowPlaying;
+ LLChat chat{llformat("Now playing %s.", nowPlaying.c_str())};
+ chat.mFromName = mTitle;
+ chat.mSourceType = CHAT_SOURCE_SYSTEM;
+ LLNotificationsUI::LLNotificationManager::instance().onChat(chat, LLSD{});
}
switch (status)