mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Add NIP-44 verification to DM decrypt worker
This commit is contained in:
1 parent
2b79021184
commit
4cc51d7a79
5 files changed
+76
-8
No files matched your search
@@ -353,7 +353,9 @@ function normalizeDirectMessageRecord(message, actorPubkey = "") {
|
||||
: [];
|
||||
|
||||
const encryptionScheme =
|
||||
typeof message?.scheme === "string"
|
||||
typeof message?.encryption_scheme === "string"
|
||||
? message.encryption_scheme.trim()
|
||||
: typeof message?.scheme === "string"
|
||||
? message.scheme.trim()
|
||||
: typeof message?.decryptor?.scheme === "string"
|
||||
? message.decryptor.scheme.trim()
|
||||
@@ -442,6 +444,7 @@ function hydrateMessagesFromSnapshot(snapshot, actorPubkey = "") {
|
||||
recipients: [],
|
||||
direction: "unknown",
|
||||
scheme: "",
|
||||
encryption_scheme: "",
|
||||
decryptor: { scheme: "", source: "snapshot" },
|
||||
event: {
|
||||
id: `dm-snapshot:${normalizedActor || "actor"}:${remote}:${timestamp}:${index}`,
|
||||
|
||||
Reference in new issue
Block a user