From 7c2a152cfbc2197989f7d722deb961ac80269019 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 8 Mar 2024 18:43:59 +0100 Subject: Add support for intentional mentions This is still a bit flaky around when to remove a mention, but it should work in most cases. Might add a toggle in the future to disable these though. --- src/EventAccessors.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/EventAccessors.h') diff --git a/src/EventAccessors.h b/src/EventAccessors.h index 4128f681..3651e941 100644 --- a/src/EventAccessors.h +++ b/src/EventAccessors.h @@ -107,6 +107,8 @@ std::string mimetype(const mtx::events::collections::TimelineEvents &event); const mtx::common::Relations & relations(const mtx::events::collections::TimelineEvents &event); +std::optional +mentions(const mtx::events::collections::TimelineEvents &event); void set_relations(mtx::events::collections::TimelineEvents &event, mtx::common::Relations relations); std::string -- cgit 1.5.1