autoDownloadMediaProvider top-level property
final
Implementation
final autoDownloadMediaProvider =
FutureProvider.family<bool, String>((ref, roomId) async {
// this should also check for local room settings...
final userSettings = await ref.read(userAppSettingsProvider.future);
final globalAutoDownload = (userSettings.autoDownloadChat() ?? 'always');
if (globalAutoDownload == 'wifiOnly') {
return ref.watch(hasWifiNetworkProvider);
}
return globalAutoDownload == 'always';
});