aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-17 18:56:44 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-17 18:56:44 +0200
commit12cdc09759edf506fbafe051895343b20a67798c (patch)
tree43f561a78eb4869bde1638ab44288ff825265800 /plugins
parent4a7b86829025664f6eeef6fcb5fc0894733f2ad6 (diff)
Matrix: make text that mentions us red
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Matrix.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index 9f58b24..3cb974f 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -123,6 +123,8 @@ namespace QuickMedia {
using RoomSyncMessages = std::unordered_map<std::shared_ptr<RoomData>, Messages>;
using Rooms = std::vector<std::shared_ptr<RoomData>>;
+ bool message_contains_user_mention(const std::string &msg, const std::string &username);
+
class Matrix {
public:
PluginResult sync(RoomSyncMessages &room_messages);