decentralised message store

fix: do correct negation

serenity 35633d6d ffe7a73b

Changed files
+1 -1
src
lib
handlers
+1 -1
src/lib/handlers/handshake.ts
···
// FIXME: this also assumes that the requesting lattice's DID is a did:web
// see above for the rest of the issues.
-
if (routeThroughUri.rKey === requestingLatticeDid.slice(8)) {
+
if (routeThroughUri.rKey !== requestingLatticeDid.slice(8)) {
mismatchReason = `route through record domain did not match with requesting service. the requesting service's domain is ${requestingLatticeDid.slice(8)}, the domain on the record is ${routeThroughUri.rKey ?? ""}.`;
mismatchOrIncorrect = true;
return;