#2626 fix for incoming IM calls not being rejected when DND mode is active

master
Maxim Nikolenko 2024-09-23 11:59:10 +03:00 committed by Mnikolenko Productengine
parent f93493cb27
commit 2dfa996db7
1 changed files with 2 additions and 0 deletions

View File

@ -3550,6 +3550,7 @@ void LLIMMgr::inviteToSession(
&& voice_invite && "VoiceInviteQuestionDefault" == question_type)
{
LL_INFOS("IMVIEW") << "Rejecting voice call from initiating muted resident " << caller_name << LL_ENDL;
payload["voice_channel_info"] = voice_channel_info;
LLIncomingCallDialog::processCallResponse(1, payload);
return;
}
@ -3598,6 +3599,7 @@ void LLIMMgr::inviteToSession(
send_do_not_disturb_message(gMessageSystem, caller_id, session_id);
}
// silently decline the call
payload["voice_channel_info"] = voice_channel_info;
LLIncomingCallDialog::processCallResponse(1, payload);
return;
}