No third-party fetch without asking: gate GIFs, hide ML settings
build / build (push) Successful in 17m17s
build / build (push) Successful in 17m17s
- GifMessage gets autoLoad; chats pass their "images from URLs" switch (off by default), so a received GIF code no longer fetches from Giphy until tapped. Reply quotes follow the channel setting. - Translation and image-message settings are hidden (kOnDeviceMl in lib/tth_fork.dart): without the native runtimes they cannot work and their buttons would only download models of up to 835 MB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
59b64291c4
commit
bfb3ef6128
6 files changed
+43
-8
No files matched your search
@@ -743,6 +743,7 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
child: GifMessage(
|
||||
url:
|
||||
'https://media.giphy.com/media/$gifId/giphy.gif',
|
||||
autoLoad: urlImagesEnabled,
|
||||
backgroundColor: Colors.transparent,
|
||||
fallbackTextColor: textColor.withValues(
|
||||
alpha: 0.7,
|
||||
@@ -1055,6 +1056,9 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
child: GifMessage(
|
||||
url: 'https://media.giphy.com/media/$gifId/giphy.gif',
|
||||
autoLoad: context.read<MeshCoreConnector>().isChannelUrlImagesEnabled(
|
||||
widget.channel.index,
|
||||
),
|
||||
backgroundColor: colorScheme.surfaceContainerHighest,
|
||||
fallbackTextColor: color,
|
||||
maxSize: gifSize,
|
||||
|
||||
Reference in new issue
Block a user