format code

This commit is contained in:
edouard committed 2026-10-24 15:26:43 +02:00
1 parent 9f358461e7
commit 705bff2f15
2 files changed
+7 -4

No files matched your search

+2 -2
View File
@@ -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;
}
+5 -2
View File
@@ -417,11 +417,14 @@ class _ChannelChatScreenState extends State<ChannelChatScreen> {
: 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;