diff --git a/lib/connector/meshcore_connector.dart b/lib/connector/meshcore_connector.dart index 9e9bbdfe..7777d60f 100644 --- a/lib/connector/meshcore_connector.dart +++ b/lib/connector/meshcore_connector.dart @@ -7391,7 +7391,7 @@ class MeshCoreConnector extends ChangeNotifier { bool _doesMessageMentionUs(String messageText, ChannelMessage message) { final selfName = _selfName; final lowerMessage = messageText.toLowerCase(); - + // Check for @[username] pattern (bracketed mention format) if (selfName != null && selfName.isNotEmpty) { final lowerSelfName = selfName.toLowerCase(); @@ -7400,7 +7400,7 @@ class MeshCoreConnector extends ChangeNotifier { ); if (bracketedMentionPattern.hasMatch(lowerMessage)) return true; } - + return false; } diff --git a/lib/screens/channel_chat_screen.dart b/lib/screens/channel_chat_screen.dart index 80818747..0a8238b8 100644 --- a/lib/screens/channel_chat_screen.dart +++ b/lib/screens/channel_chat_screen.dart @@ -417,11 +417,14 @@ class _ChannelChatScreenState extends State { : Icons.notifications, ), onPressed: () { - final currentMode = settings.getChannelNotificationMode(muteKey); + final currentMode = settings.getChannelNotificationMode( + muteKey, + ); ChannelNotificationMode newMode; if (currentMode == ChannelNotificationMode.all) { newMode = ChannelNotificationMode.mentionsOnly; - } else if (currentMode == ChannelNotificationMode.mentionsOnly) { + } else if (currentMode == + ChannelNotificationMode.mentionsOnly) { newMode = ChannelNotificationMode.muted; } else { newMode = ChannelNotificationMode.all;