diff options
| author | Brett Joseph <bjoseph@vivox.com> | 2015-05-11 09:52:18 -0400 |
|---|---|---|
| committer | Brett Joseph <bjoseph@vivox.com> | 2015-05-11 09:52:18 -0400 |
| commit | 43b7fe66db159faaa84d545f97818e7a6f0f6920 (patch) | |
| tree | 6581ed36e716f6aa57b01f2861d6812294fb2261 /indra/newview/llimview.cpp | |
| parent | 7cc3e9b3cf8d70fce2ba0d4a398824e599fc8c5d (diff) | |
| parent | e611e35e033e99f619b0e4938f6879c8e387efd5 (diff) | |
Merged lindenlab/viewer-tools-update into default
Diffstat (limited to 'indra/newview/llimview.cpp')
| -rwxr-xr-x | indra/newview/llimview.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index 96d8762c56..008388c244 100755 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -3061,6 +3061,24 @@ void LLIMMgr::inviteToSession( { if (gAgent.isDoNotDisturb() && !isRejectGroupCall && !isRejectNonFriendCall) { + if (!hasSession(session_id) && (type == IM_SESSION_P2P_INVITE)) + { + std::string fixed_session_name = caller_name; + if(!session_name.empty() && session_name.size()>1) + { + fixed_session_name = session_name; + } + else + { + LLAvatarName av_name; + if (LLAvatarNameCache::get(caller_id, &av_name)) + { + fixed_session_name = av_name.getDisplayName(); + } + } + LLIMModel::getInstance()->newSession(session_id, fixed_session_name, IM_NOTHING_SPECIAL, caller_id, false, false); + } + LLSD args; addSystemMessage(session_id, "you_auto_rejected_call", args); send_do_not_disturb_message(gMessageSystem, caller_id, session_id); |
