mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Fix failover on failed sends, and improve logging
This commit is contained in:
@@ -843,7 +843,14 @@ export function _shouldFailSend(error: unknown, logId: string): boolean {
|
||||
|
||||
if (error instanceof SendMessageProtoError) {
|
||||
if (!error.errors || !error.errors.length) {
|
||||
logError('SendMessageProtoError had no errors, failing.');
|
||||
logError('SendMessageProtoError had no errors but was thrown! Failing.');
|
||||
return true;
|
||||
}
|
||||
|
||||
if (error.successfulIdentifiers && error.successfulIdentifiers.length > 0) {
|
||||
logError(
|
||||
'SendMessageProtoError had successful sends; no further sends needed. Failing.'
|
||||
);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user