decentralised message store

Compare changes

Choose any two refs to compare.

Changed files
+2 -2
src
lib
handlers
utils
+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;
+1 -1
src/lib/utils/gmstn.ts
···
.select()
.from(messagesTable)
.where(eq(messagesTable.channelAtUri, channelAtUriString))
-
.limit(100);
+
.limit(100000);
return { ok: true, data: messages };
};