mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
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:
2 files changed
+24
-2
No files matched your search
@@ -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
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user