Merge pull request #799 from PR0M3TH3AN/codex/add-watchhistory-api-module-and-refactor

Refactor watch history logic into dedicated module
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2025-10-22 13:52:56 -04:00
commit 67715ffc7a
3 files changed
+2846 -2979

No files matched your search

+621 -2977
View File
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+3 -2
View File
@@ -5811,7 +5811,8 @@ export class ProfileModalController {
}
async hydrateActiveWalletSettings(pubkey) {
const hydrate = this.services.nwcSettings?.hydrateNwcSettingsForPubkey;
const service = this.services.nwcSettings;
const hydrate = service?.hydrateNwcSettingsForPubkey;
if (typeof hydrate !== "function") {
return null;
}
@@ -5824,7 +5825,7 @@ export class ProfileModalController {
}
try {
return await hydrate(normalized);
return await hydrate.call(service, normalized);
} catch (error) {
userLogger.warn(
`[ProfileModalController] Failed to hydrate wallet settings for ${normalized}:`,