Add notification replies, Android Auto support, and channel mute bell

- Message notifications use Android MessagingStyle with Reply, Mark as read,
  and Mute channel actions, so they work in Android Auto and on watches
- Replies go through the normal send path (length limits, SMAZ, Cyr2Lat,
  retries), split into up to 3 messages, and report failures
- Declare Android Auto notification support and register the action receiver
- Add a bell icon to channel chat to mute/unmute; unify the channel mute key
  so unnamed channels mute correctly
- Update README and docs for Android Auto support
This commit is contained in:
zjs81 committed 2026-09-27 21:55:43 -07:00
1 parent 5cfd26b3af
commit 25f8d6ae27
35 files changed
+1874 -199

No files matched your search

+19
View File
@@ -361,6 +361,25 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
centerTitle: false,
bottom: const SyncProgressAppBarBottom(),
actions: [
Consumer<AppSettingsService>(
builder: (context, settings, _) {
final muteKey = widget.channel.muteKey;
final muted = settings.isChannelMuted(muteKey);
return IconButton(
tooltip: muted
? context.l10n.channels_unmuteChannel
: context.l10n.channels_muteChannel,
icon: Icon(
muted
? Icons.notifications_off_outlined
: Icons.notifications_outlined,
),
onPressed: () => muted
? settings.unmuteChannel(muteKey)
: settings.muteChannel(muteKey),
);
},
),
IconButton(
tooltip: context.l10n.channels_regionSelect_Title,
icon: const Icon(Icons.landscape),
+4 -4
View File
@@ -363,7 +363,7 @@ class _ChannelsScreenState extends State<ChannelsScreen>
}) {
final unreadCount = connector.getUnreadCountForChannel(channel);
final isMuted = context.watch<AppSettingsService>().isChannelMuted(
channel.name,
channel.muteKey,
);
final scheme = Theme.of(context).colorScheme;
@@ -623,7 +623,7 @@ class _ChannelsScreenState extends State<ChannelsScreen>
) {
final parentContext = context;
final settingsService = context.read<AppSettingsService>();
final isMuted = settingsService.isChannelMuted(channel.name);
final isMuted = settingsService.isChannelMuted(channel.muteKey);
showModalBottomSheet(
context: parentContext,
@@ -656,9 +656,9 @@ class _ChannelsScreenState extends State<ChannelsScreen>
onTap: () async {
Navigator.pop(sheetContext);
if (isMuted) {
await settingsService.unmuteChannel(channel.name);
await settingsService.unmuteChannel(channel.muteKey);
} else {
await settingsService.muteChannel(channel.name);
await settingsService.muteChannel(channel.muteKey);
}
},
),