On send, pull data from target edit if sending edit
This commit is contained in:
parent
146b562c91
commit
48245eeea6
12 changed files with 529 additions and 135 deletions
|
@ -819,6 +819,11 @@ export function _shouldFailSend(error: unknown, logId: string): boolean {
|
|||
// SendMessageChallengeError
|
||||
// MessageError
|
||||
if (isRecord(error) && typeof error.code === 'number') {
|
||||
if (error.code === -1) {
|
||||
logError("We don't have connectivity. Failing.");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (error.code === 400) {
|
||||
logError('Invalid request, failing.');
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue