Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3524768
D12826.id42592.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12826.id42592.diff
View Options
diff --git a/native/profile/tunnelbroker-menu.react.js b/native/profile/tunnelbroker-menu.react.js
--- a/native/profile/tunnelbroker-menu.react.js
+++ b/native/profile/tunnelbroker-menu.react.js
@@ -95,10 +95,7 @@
return;
}
await olmAPI.initializeCryptoAccount();
- const encryptedData = await olmAPI.encrypt(
- `Encrypted message to ${recipient}`,
- recipient,
- );
+ const encryptedData = await olmAPI.encrypt(message, recipient);
const signingKey = await getContentSigningKey();
const encryptedMessage: EncryptedMessage = {
type: peerToPeerMessageTypes.ENCRYPTED_MESSAGE,
@@ -115,7 +112,7 @@
} catch (e) {
console.log(`Error sending encrypted content to device: ${e.message}`);
}
- }, [currentUserID, recipient, sendMessage]);
+ }, [message, currentUserID, recipient, sendMessage]);
return (
<ScrollView
diff --git a/web/settings/tunnelbroker-test.react.js b/web/settings/tunnelbroker-test.react.js
--- a/web/settings/tunnelbroker-test.react.js
+++ b/web/settings/tunnelbroker-test.react.js
@@ -61,10 +61,7 @@
setLoading(true);
try {
await olmAPI.initializeCryptoAccount();
- const encryptedData = await olmAPI.encrypt(
- `Encrypted message to ${recipient}`,
- recipient,
- );
+ const encryptedData = await olmAPI.encrypt(message, recipient);
const deviceID = await getContentSigningKey();
const encryptedMessage: EncryptedMessage = {
type: peerToPeerMessageTypes.ENCRYPTED_MESSAGE,
@@ -83,7 +80,7 @@
}
setLoading(false);
},
- [currentUserID, recipient, sendMessage],
+ [message, currentUserID, recipient, sendMessage],
);
let errorMsg;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 2:25 PM (4 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2700186
Default Alt Text
D12826.id42592.diff (1 KB)
Attached To
Mode
D12826: [native][web] Allow sending custom encrypted message via Tunnelbroker test interface
Attached
Detach File
Event Timeline
Log In to Comment