aboutsummaryrefslogtreecommitdiff
path: root/libdino
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2018-09-18 21:28:56 +0200
committerfiaxh <git@mx.ax.lt>2018-09-21 21:53:48 +0200
commit85d194e349858b3cbbb4dd2a8ca007428378c56c (patch)
tree4ec16ce60c26c2f57b245f2a0280c61b5db1c828 /libdino
parent9575b192e4d22d9f5422fae1b02ddf81db1ecf68 (diff)
downloaddino-85d194e349858b3cbbb4dd2a8ca007428378c56c.tar.gz
dino-85d194e349858b3cbbb4dd2a8ca007428378c56c.zip
Use Label instead of TextView for message display
Diffstat (limited to 'libdino')
-rw-r--r--libdino/src/service/notification_events.vala3
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;
}