Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33319009
D14289.1768838024.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D14289.1768838024.diff
View Options
diff --git a/native/input/input-state-container.react.js b/native/input/input-state-container.react.js
--- a/native/input/input-state-container.react.js
+++ b/native/input/input-state-container.react.js
@@ -393,6 +393,9 @@
this.pendingSidebarCreationMessageLocalIDs.delete(localID);
return result;
} catch (e) {
+ if (e instanceof SendMessageError) {
+ throw e;
+ }
const exceptionMessage = getMessageForException(e) ?? '';
if (exceptionMessage === 'invalid_csat') {
void this.props.invalidTokenLogOut();
@@ -613,6 +616,9 @@
this.pendingSidebarCreationMessageLocalIDs.delete(localID);
return result;
} catch (e) {
+ if (e instanceof SendMessageError) {
+ throw e;
+ }
const exceptionMessage = getMessageForException(e) ?? '';
throw new SendMessageError(
`Exception when sending text message: ${exceptionMessage}`,
diff --git a/web/input/input-state-container.react.js b/web/input/input-state-container.react.js
--- a/web/input/input-state-container.react.js
+++ b/web/input/input-state-container.react.js
@@ -559,6 +559,9 @@
});
return result;
} catch (e) {
+ if (e instanceof SendMessageError) {
+ throw e;
+ }
const exceptionMessage = getMessageForException(e) ?? '';
if (exceptionMessage === 'invalid_csat') {
void this.props.invalidTokenLogOut();
@@ -1385,6 +1388,9 @@
this.pendingSidebarCreationMessageLocalIDs.delete(localID);
return result;
} catch (e) {
+ if (e instanceof SendMessageError) {
+ throw e;
+ }
const exceptionMessage = getMessageForException(e) ?? '';
throw new SendMessageError(
`Exception while sending text message: ${exceptionMessage}`,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 3:53 PM (2 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5957096
Default Alt Text
D14289.1768838024.diff (1 KB)
Attached To
Mode
D14289: [web][native] Fix retrying sending message when having device without keys
Attached
Detach File
Event Timeline
Log In to Comment