fix(mobile): guard push profile cache disposal

Signed-off-by: Tom Brow <tomb@block.xyz>
Co-authored-by: Codex <noreply@openai.com>
Ai-assisted: true
This commit is contained in:
Tom Brow
2026-08-24 11:47:36 -07:00
parent 1b0563e57f
commit 9b1a062241

View File

@@ -68,9 +68,9 @@ class UserCacheNotifier extends Notifier<Map<String, UserProfile>> {
final pubkeys = _pending.toList();
_pending.clear();
final communityID = ref.read(activeCommunityProvider).value?.id;
try {
final communityID = ref.read(activeCommunityProvider).value?.id;
final session = ref.read(relaySessionProvider.notifier);
final events = await session.fetchHistory(
NostrFilters.profilesBatch(pubkeys),