Merge upstream/dev: Android Auto as opt-in flavor, decluttered map overlay
build / build (push) Failing after 3m2s

Conflicts: the manifest keeps our unread widget receiver and drops the
Android Auto meta-data, which upstream moved to the androidAuto source set
(fe7e72a). Rename detection had moved our unread_widget_info.xml into that
source set with it; it stays in main. _mapChip is gone upstream with the
map overlay declutter (ed5884e), so our terminal-theme restyle of it goes
too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-10-25 19:00:11 +01:00
commit 9489dee1c3
114 files changed
+11506 -1027

No files matched your search

+67 -28
View File
@@ -20,6 +20,8 @@ import '../widgets/message_status_icon.dart';
import '../widgets/empty_state.dart';
import '../helpers/chat_scroll_controller.dart';
import '../helpers/gif_helper.dart';
import '../helpers/ipfs_link_attach_flow.dart';
import '../helpers/marker_message.dart';
import '../models/channel_message.dart';
import '../models/contact.dart';
import '../l10n/contact_localization.dart';
@@ -524,26 +526,39 @@ class _ChatScreenState extends State<ChatScreen> {
sendTooltip: context.l10n.chat_sendMessageTo(
_resolveContact(connector).name,
),
// No image action here: the image wire format is GRP_DATA, a channel
// primitive with no DM equivalent (see the note at the top of this
// file).
actionsBuilder: () => [
ChatComposerAction(
id: 'gif',
icon: Icons.gif_box,
label: context.l10n.chat_sendGif,
),
ChatComposerAction(
id: 'send-my-location',
icon: Icons.my_location,
label: context.l10n.chat_shareMyLocation,
),
],
actionsBuilder: () {
final showIpfsAction = context
.read<AppSettingsService>()
.settings
.uploadIpfsEndpoint
.trim()
.isNotEmpty;
return [
ChatComposerAction(
id: 'gif',
icon: Icons.gif_box,
label: context.l10n.chat_sendGif,
),
if (showIpfsAction)
ChatComposerAction(
id: 'ipfs-image',
icon: Icons.cloud_upload_outlined,
label: context.l10n.chat_sendImageIpfs,
),
ChatComposerAction(
id: 'send-my-location',
icon: Icons.my_location,
label: context.l10n.chat_shareMyLocation,
),
];
},
onAction: (action) {
if (!mounted) return;
switch (action) {
case 'gif':
showChatGifPicker(context, _textController);
case 'ipfs-image':
_sendImageViaIpfs();
case 'send-my-location':
_shareMyLocation(context.read<MeshCoreConnector>());
}
@@ -551,6 +566,19 @@ class _ChatScreenState extends State<ChatScreen> {
);
}
Future<void> _sendImageViaIpfs() {
final connector = context.read<MeshCoreConnector>();
final contact = _resolveContact(connector);
return attachIpfsLinkToDraft(
context: context,
controller: _textController,
focusNode: _textFieldFocusNode,
maxBytes: maxContactMessageBytes(),
encodeOutbound: (text) =>
connector.prepareContactOutboundText(contact, text),
);
}
/// Shares the radio's own position as a map marker. Shares the text send
/// guard and cooldown so it can't race or flood alongside typed messages.
Future<void> _shareMyLocation(MeshCoreConnector connector) {
@@ -758,6 +786,10 @@ class _ChatScreenState extends State<ChatScreen> {
bool urlImagesEnabled = connector.isContactUrlImagesEnabled(
contact.publicKeyHex,
);
final loadLinkImages = context
.read<AppSettingsService>()
.settings
.loadLinkImages;
String? selectedCyr2LatProfileId = connector.getContactCyr2LatProfileId(
contact.publicKeyHex,
);
@@ -872,14 +904,19 @@ class _ChatScreenState extends State<ChatScreen> {
SwitchListTile(
contentPadding: EdgeInsets.zero,
title: Text(context.l10n.urlImage_enable),
subtitle: loadLinkImages
? null
: Text(context.l10n.urlImage_disabledInAppSettings),
value: urlImagesEnabled,
onChanged: (value) {
connector.setContactUrlImagesEnabled(
contact.publicKeyHex,
value,
);
setDialogState(() => urlImagesEnabled = value);
},
onChanged: loadLinkImages
? (value) {
connector.setContactUrlImagesEnabled(
contact.publicKeyHex,
value,
);
setDialogState(() => urlImagesEnabled = value);
}
: null,
),
const Divider(height: 8),
SwitchListTile(
@@ -1165,9 +1202,8 @@ class _ChatScreenState extends State<ChatScreen> {
}
void _showEmojiPicker(Message message, Contact senderContact) {
showModalBottomSheet(
context: context,
isScrollControlled: true,
showMeshSheet(
context,
builder: (context) => EmojiPicker(
onEmojiSelected: (emoji) {
_sendReaction(message, senderContact, emoji);
@@ -1229,6 +1265,7 @@ class _MessageBubble extends StatelessWidget {
final urlImagesEnabled = context.select<MeshCoreConnector, bool>(
(connector) => connector.isContactUrlImagesEnabled(sourceId),
);
final publicIpfsGateway = settingsService.settings.publicIpfsGateway;
final colors = MessageBubbleColors.of(
scheme,
@@ -1357,6 +1394,7 @@ class _MessageBubble extends StatelessWidget {
MessageUrlImageFutureBuilder(
messageId: message.messageId,
text: message.text,
publicGateway: publicIpfsGateway,
builder: (context, snapshot) {
final imageAttachment = snapshot.data;
@@ -1409,9 +1447,10 @@ class _MessageBubble extends StatelessWidget {
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (MessageUrlImageHelper.hasPotentialImageUrl(
message.text,
))
if (settingsService.settings.loadLinkImages &&
MessageUrlImageHelper.hasPotentialImageUrl(
message.text,
))
Padding(
padding: const EdgeInsets.only(bottom: 4),
child: Text(