Fix show muted text in chat
This commit is contained in:
@@ -319,7 +319,7 @@ void LLFloaterChat::addChatHistory(const LLChat& chat, bool log_to_file)
|
||||
{
|
||||
// desaturate muted chat
|
||||
LLColor4 muted_color = lerp(color, LLColor4::grey, 0.5f);
|
||||
add_timestamped_line(history_editor_with_mute, chat, color);
|
||||
add_timestamped_line(history_editor_with_mute, chat, muted_color);
|
||||
}
|
||||
|
||||
// add objects as transient speakers that can be muted
|
||||
|
||||
@@ -3857,24 +3857,16 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data)
|
||||
chat.mPosAgent = chatter->getPositionAgent();
|
||||
}
|
||||
|
||||
// truth table:
|
||||
// LINDEN MUTED BUSY OWNED_BY_YOU TASK DISPLAY STORE IN HISTORY
|
||||
// F T * * * No No
|
||||
// F F T F * No Yes
|
||||
// * F F * * Yes Yes
|
||||
// * F * T * Yes Yes
|
||||
// T * * * F Yes Yes
|
||||
|
||||
chat.mMuted = is_muted && !is_linden;
|
||||
bool only_history = visible_in_chat_bubble || (!is_linden && !is_owned_by_me && is_busy);
|
||||
#if 0 // Google translate doesn't work anymore
|
||||
if (!chat.mMuted)
|
||||
{
|
||||
bool only_history = visible_in_chat_bubble || (!is_linden && !is_owned_by_me && is_busy);
|
||||
#if 0 // Google translate doesn't work anymore
|
||||
check_translate_chat(mesg, chat, only_history);
|
||||
#else
|
||||
add_floater_chat(chat, only_history);
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
add_floater_chat(chat, only_history);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user