diff options
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/transport-chat.js')
| -rw-r--r-- | packages/meshbay-hub/src/meshbay_hub/static/transport-chat.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/transport-chat.js b/packages/meshbay-hub/src/meshbay_hub/static/transport-chat.js index 9ce07bc..3efbb22 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/transport-chat.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/transport-chat.js @@ -138,7 +138,6 @@ extendTransport(class { sender_id: row.sender_id, sender_name: row.sender_name || '', timestamp: row.timestamp, - thread_id: row.thread_id, }; const format = row.format || 0; if (format === 0) { @@ -169,7 +168,7 @@ extendTransport(class { * post in clear into a group whose members believe their chat is encrypted; * the node refuses it too, and the two refusals agreeing is the point. */ - async sendChat(text, iteration, threadId, senderName) { + async sendChat(text, iteration, senderName) { const keys = await this.chatKeys(); const epoch = this.chatEpoch || keys.current; const epochKey = keys.byEpoch.get(epoch); @@ -182,7 +181,6 @@ extendTransport(class { const gid = this._groupId || ''; const plaintext = msgpack_encode({ text: String(text), - thread_id: threadId || null, sender_name: senderName || '', sent_at: Math.floor(Date.now() / 1000), }); @@ -204,7 +202,6 @@ extendTransport(class { nonce, device, sig, - thread_id: threadId || null, // Deliberately absent: the display name is inside the envelope now. sender_name: null, }); @@ -315,7 +312,6 @@ extendTransport(class { ...base, payload: String(plain.text || ''), sender_name: plain.sender_name || base.sender_name, - thread_id: plain.thread_id ?? base.thread_id, device: deviceB64, verified: true, trust, |