Skip to content
Snippets Groups Projects
Commit 126286ca authored by Tiger Wang's avatar Tiger Wang
Browse files

Prevent message echo on native crdt

parent 97c6fb4d
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,10 @@ export default class Exfiltrator {
return
}
if (disableSend) {
const existingMapping = XCDPIdentifierFrom(id)
if (disableSend || (existingMapping && existingMapping !== id)) {
// Prevent echoing secret intelligence back to the room
// disableSend for Yjs, reverse-lookup for XCDPId == OurId for Native
return
}
......@@ -199,8 +202,6 @@ const XCDPIdentifierFrom = (lineID) => {
return XCDPID
}
}
throw new Error("XCDP identifier unexpectedly not present")
}
function parseColourComponent(component) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment