Change challenge policy for outgoing group updates
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
6b0c63fccc
commit
1207d64f72
1 changed files with 3 additions and 1 deletions
|
@ -249,7 +249,7 @@ function shouldSendShowCaptcha(type: ConversationQueueJobEnum): boolean {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (type === 'GroupUpdate') {
|
if (type === 'GroupUpdate') {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
if (type === 'NormalMessage') {
|
if (type === 'NormalMessage') {
|
||||||
return true;
|
return true;
|
||||||
|
@ -269,6 +269,8 @@ function shouldSendShowCaptcha(type: ConversationQueueJobEnum): boolean {
|
||||||
if (type === 'SavedProto') {
|
if (type === 'SavedProto') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// Note: this is only for out-of-band sender key distributions (see handleRetry.ts),
|
||||||
|
// not the ones attached to group sends
|
||||||
if (type === 'SenderKeyDistribution') {
|
if (type === 'SenderKeyDistribution') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue