diff options
author | fiaxh <git@mx.ax.lt> | 2018-09-18 21:28:56 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2018-09-21 21:53:48 +0200 |
commit | 85d194e349858b3cbbb4dd2a8ca007428378c56c (patch) | |
tree | 4ec16ce60c26c2f57b245f2a0280c61b5db1c828 /libdino/src/service/notification_events.vala | |
parent | 9575b192e4d22d9f5422fae1b02ddf81db1ecf68 (diff) | |
download | dino-85d194e349858b3cbbb4dd2a8ca007428378c56c.tar.gz dino-85d194e349858b3cbbb4dd2a8ca007428378c56c.zip |
Use Label instead of TextView for message display
Diffstat (limited to 'libdino/src/service/notification_events.vala')
-rw-r--r-- | libdino/src/service/notification_events.vala | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |