On send, pull data from target edit if sending edit
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user