Merge pull request #1888 from PR0M3TH3AN/prioritize-user-data-sync-7512452180473262009

Prioritize User Data Sync (Blocklists, DMs) over Video Feed
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-28 12:27:43 -05:00
commit 4de479aaca
2 files changed
+24 -2

No files matched your search

+13
View File
@@ -3271,6 +3271,19 @@ class Application {
error,
);
}
try {
await this.nostrService.loadDirectMessages({
actorPubkey: activePubkey,
limit: 50,
initialLoad: true,
});
} catch (error) {
devLogger.warn(
"[Application] Failed to sync direct messages during login:",
error,
);
}
}
try {
+11 -2
View File
@@ -139,6 +139,7 @@ import {
import {
DEFAULT_NIP07_ENCRYPTION_METHODS,
DEFAULT_NIP07_PERMISSION_METHODS,
NIP07_PRIORITY,
clearStoredNip07Permissions,
normalizePermissionMethod,
readStoredNip07Permissions,
@@ -4514,7 +4515,11 @@ export class NostrClient {
) {
addCandidate(
"nip44",
activeSigner.nip44Decrypt.bind(activeSigner),
(pubkey, ciphertext, options) =>
activeSigner.nip44Decrypt(pubkey, ciphertext, {
...options,
priority: NIP07_PRIORITY.HIGH,
}),
{
priority: -20,
source: activeSigner.type || "signer",
@@ -4528,7 +4533,11 @@ export class NostrClient {
) {
addCandidate(
"nip04",
activeSigner.nip04Decrypt.bind(activeSigner),
(pubkey, ciphertext, options) =>
activeSigner.nip04Decrypt(pubkey, ciphertext, {
...options,
priority: NIP07_PRIORITY.HIGH,
}),
{
priority: -10,
source: activeSigner.type || "signer",