When possible, populate the owner id of our llviewerobjects

This commit is contained in:
Liru Færs
2020-02-29 05:51:07 -05:00
parent 9264482dc3
commit 74a6f7382a
5 changed files with 19 additions and 4 deletions

View File

@@ -566,6 +566,10 @@ void LLIMProcessing::processNewMessage(LLUUID from_id,
// object IMs contain sender object id in session_id (STORM-1209)
|| (chat.mSourceType == CHAT_SOURCE_OBJECT && LLMuteList::getInstance()->isMuted(session_id));
// Singu Note: Try to get Owner whenever possible, here owner is the from id
if (chat.mSourceType == CHAT_SOURCE_OBJECT && session_id.notNull())
if (auto obj = gObjectList.findObject(session_id)) obj->mOwnerID = from_id;
bool is_linden = chat.mSourceType != CHAT_SOURCE_OBJECT &&
LLMuteList::getInstance()->isLinden(name);
chat.mMuted = is_muted && !is_linden;