feat: Add option to not autoplay stickers and emotes

This commit is contained in:
Sorunome 2021-08-07 19:36:42 +02:00
commit 41a9d0a2b0
11 changed files with 125 additions and 33 deletions

View file

@ -51,6 +51,7 @@ class ImageViewerView extends StatelessWidget {
maxSize: false,
radius: 0.0,
thumbnailOnly: false,
animated: true,
),
),
),

View file

@ -49,6 +49,12 @@ class SettingsChatView extends StatelessWidget {
storeKey: SettingKeys.hideUnknownEvents,
defaultValue: AppConfig.hideUnknownEvents,
),
SettingsSwitchListTile(
title: L10n.of(context).autoplayImages,
onChanged: (b) => AppConfig.autoplayImages = b,
storeKey: SettingKeys.autoplayImages,
defaultValue: AppConfig.autoplayImages,
),
],
),
),