Drop incoming calls if conversation is not 'accepted'
This commit is contained in:
parent
0f8a60acc3
commit
632cd0e87e
1 changed files with 13 additions and 1 deletions
|
@ -269,7 +269,19 @@ export class CallingClass {
|
||||||
verifiedEnum ===
|
verifiedEnum ===
|
||||||
window.textsecure.storage.protocol.VerifiedStatus.UNVERIFIED
|
window.textsecure.storage.protocol.VerifiedStatus.UNVERIFIED
|
||||||
) {
|
) {
|
||||||
window.log.info('Peer is not trusted, ignoring incoming call.');
|
window.log.info(
|
||||||
|
`Peer is not trusted, ignoring incoming call for conversation: ${conversation.idForLogging()}`
|
||||||
|
);
|
||||||
|
this.addCallHistoryForFailedIncomingCall(conversation, call);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Simple Call Requests: Ensure that the conversation is accepted.
|
||||||
|
// If not, do not allow the call.
|
||||||
|
if (!conversation.getAccepted()) {
|
||||||
|
window.log.info(
|
||||||
|
`Messaging is not accepted, ignoring incoming call for conversation: ${conversation.idForLogging()}`
|
||||||
|
);
|
||||||
this.addCallHistoryForFailedIncomingCall(conversation, call);
|
this.addCallHistoryForFailedIncomingCall(conversation, call);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue