mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-12 00:17:02 +02:00
Fix: trigger gift wrap subscription when getting conversations
getConversations was returning an empty observable because subscribeToGiftWraps() was never called. Now triggers the subscription when the inbox is opened.
This commit is contained in:
@@ -419,6 +419,9 @@ export class Nip17Adapter extends ChatProtocolAdapter {
|
||||
return new BehaviorSubject([]);
|
||||
}
|
||||
|
||||
// Start fetching gift wraps from inbox relays
|
||||
this.subscribeToGiftWraps(activePubkey);
|
||||
|
||||
return this.giftWraps$.pipe(
|
||||
map((giftWraps) => {
|
||||
// Group rumors by conversation
|
||||
|
||||
Reference in New Issue
Block a user