mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: dont show _ActivityAssetThumbnail if viewing asset while on beta timeline
This commit is contained in:
parent
b1ad8956f3
commit
d766878a52
1 changed files with 9 additions and 2 deletions
|
|
@ -9,6 +9,7 @@ import 'package:immich_mobile/presentation/widgets/asset_viewer/asset_viewer.pag
|
|||
import 'package:immich_mobile/providers/asset_viewer/current_asset.provider.dart';
|
||||
import 'package:immich_mobile/providers/image/immich_remote_thumbnail_provider.dart';
|
||||
import 'package:immich_mobile/providers/infrastructure/asset.provider.dart';
|
||||
import 'package:immich_mobile/providers/infrastructure/asset_viewer/current_asset.provider.dart';
|
||||
import 'package:immich_mobile/providers/infrastructure/timeline.provider.dart';
|
||||
import 'package:immich_mobile/routing/router.dart';
|
||||
import 'package:immich_mobile/widgets/common/user_circle_avatar.dart';
|
||||
|
|
@ -20,11 +21,17 @@ class ActivityTile extends HookConsumerWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final asset = ref.watch(currentAssetProvider);
|
||||
final isLike = activity.type == ActivityType.like;
|
||||
// Asset thumbnail is displayed when we are accessing activities from the album page
|
||||
// currentAssetProvider will not be set until we open the gallery viewer
|
||||
final showAssetThumbnail = asset == null && activity.assetId != null;
|
||||
bool showAssetThumbnail = false;
|
||||
if (Store.isBetaTimelineEnabled) {
|
||||
final asset = ref.watch(currentAssetNotifier);
|
||||
showAssetThumbnail = asset == null && activity.assetId != null;
|
||||
} else {
|
||||
final asset = ref.watch(currentAssetProvider);
|
||||
showAssetThumbnail = asset == null && activity.assetId != null;
|
||||
}
|
||||
|
||||
return ListTile(
|
||||
minVerticalPadding: 15,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue