Keep alive of the chat summary

This commit is contained in:
2025-12-04 22:35:45 +08:00
parent 4181fd0090
commit c6f104afc7
3 changed files with 15 additions and 15 deletions

View File

@@ -45,7 +45,7 @@ final chatRoomJoinedNotifierProvider = AutoDisposeAsyncNotifierProvider<
); );
typedef _$ChatRoomJoinedNotifier = AutoDisposeAsyncNotifier<List<SnChatRoom>>; typedef _$ChatRoomJoinedNotifier = AutoDisposeAsyncNotifier<List<SnChatRoom>>;
String _$chatRoomNotifierHash() => r'978bd602cf5e93e60e3c7b9f5799d46a87495c79'; String _$chatRoomNotifierHash() => r'1e6391e2ab4eeb114fa001aaa6b06ab2bd646f38';
/// Copied from Dart SDK /// Copied from Dart SDK
class _SystemHash { class _SystemHash {

View File

@@ -60,7 +60,7 @@ class ChatUnreadCountNotifier extends _$ChatUnreadCountNotifier {
} }
} }
@riverpod @Riverpod(keepAlive: true)
class ChatSummary extends _$ChatSummary { class ChatSummary extends _$ChatSummary {
@override @override
Future<Map<String, SnChatSummary>> build() async { Future<Map<String, SnChatSummary>> build() async {

View File

@@ -24,22 +24,22 @@ final chatUnreadCountNotifierProvider =
); );
typedef _$ChatUnreadCountNotifier = AutoDisposeAsyncNotifier<int>; typedef _$ChatUnreadCountNotifier = AutoDisposeAsyncNotifier<int>;
String _$chatSummaryHash() => r'8479ef53cfb0b698b800d0117d04774b6f78b3cc'; String _$chatSummaryHash() => r'78d927d40cded9d7adbc20bd6f457fdf3c852632';
/// See also [ChatSummary]. /// See also [ChatSummary].
@ProviderFor(ChatSummary) @ProviderFor(ChatSummary)
final chatSummaryProvider = AutoDisposeAsyncNotifierProvider< final chatSummaryProvider =
ChatSummary, AsyncNotifierProvider<ChatSummary, Map<String, SnChatSummary>>.internal(
Map<String, SnChatSummary> ChatSummary.new,
>.internal( name: r'chatSummaryProvider',
ChatSummary.new, debugGetCreateSourceHash:
name: r'chatSummaryProvider', const bool.fromEnvironment('dart.vm.product')
debugGetCreateSourceHash: ? null
const bool.fromEnvironment('dart.vm.product') ? null : _$chatSummaryHash, : _$chatSummaryHash,
dependencies: null, dependencies: null,
allTransitiveDependencies: null, allTransitiveDependencies: null,
); );
typedef _$ChatSummary = AutoDisposeAsyncNotifier<Map<String, SnChatSummary>>; typedef _$ChatSummary = AsyncNotifier<Map<String, SnChatSummary>>;
// ignore_for_file: type=lint // ignore_for_file: type=lint
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package