From 85d194e349858b3cbbb4dd2a8ca007428378c56c Mon Sep 17 00:00:00 2001 From: fiaxh Date: Tue, 18 Sep 2018 21:28:56 +0200 Subject: Use Label instead of TextView for message display --- libdino/src/service/notification_events.vala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libdino/src') diff --git a/libdino/src/service/notification_events.vala b/libdino/src/service/notification_events.vala index 2d6a2545..a8164970 100644 --- a/libdino/src/service/notification_events.vala +++ b/libdino/src/service/notification_events.vala @@ -52,7 +52,6 @@ public class NotificationEvents : StreamInteractionModule, Object { return; } if (!should_notify_message(message, conversation)) return; - if (!should_notify_message(message, conversation)) return; if (stream_interactor.get_module(ChatInteraction.IDENTITY).is_active_focus()) return; notify_message(message, conversation); } @@ -62,7 +61,7 @@ public class NotificationEvents : StreamInteractionModule, Object { if (notify == Conversation.NotifySetting.OFF) return false; Jid? nick = stream_interactor.get_module(MucManager.IDENTITY).get_own_jid(conversation.counterpart, conversation.account); if (notify == Conversation.NotifySetting.HIGHLIGHT && nick != null) { - return Regex.match_simple("""\b""" + Regex.escape_string(nick.resourcepart) + """\b""", message.body, RegexCompileFlags.CASELESS); + return Regex.match_simple("\\b" + Regex.escape_string(nick.resourcepart) + "\\b", message.body, RegexCompileFlags.CASELESS); } return true; } -- cgit v1.2.3-70-g09d2