Update welshman stuff again

This commit is contained in:
Jon Staab
2025-04-11 09:27:19 -07:00
parent acddff79f0
commit 84af4d2d8e
9 changed files with 82 additions and 75 deletions
+5 -3
View File
@@ -160,14 +160,16 @@
)
// Listen for chats, populate chat-based notifications
let chatsReq: any
let controller: AbortController
derived([pubkey, canDecrypt, userInboxRelaySelections], identity).subscribe(
([$pubkey, $canDecrypt, $userInboxRelaySelections]) => {
chatsReq?.close()
controller?.abort()
controller = new AbortController()
if ($pubkey && $canDecrypt) {
chatsReq = request({
request({
signal: controller.signal,
filters: [
{kinds: [WRAP], "#p": [$pubkey], since: ago(WEEK, 2)},
{kinds: [WRAP], "#p": [$pubkey], limit: 100},