mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Stop retrying message send on 400 response
This commit is contained in:
@@ -731,6 +731,11 @@ export function _shouldFailSend(error: unknown, logId: string): boolean {
|
||||
// SendMessageChallengeError
|
||||
// MessageError
|
||||
if (isRecord(error) && typeof error.code === 'number') {
|
||||
if (error.code === 400) {
|
||||
logError('Invalid request, failing.');
|
||||
return true;
|
||||
}
|
||||
|
||||
if (error.code === 401) {
|
||||
logError('Permissions error, failing.');
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user