mirror of
https://github.com/matrix-construct/construct
synced 2024-10-31 19:08:59 +01:00
modules/m_user: Search the formatted_body for a user mxid first.
This commit is contained in:
parent
7b267e1c6d
commit
1dc83d7801
1 changed files with 8 additions and 0 deletions
|
@ -29,6 +29,14 @@ highlighted_event(const event &event,
|
|||
json::get<"content"_>(event)
|
||||
};
|
||||
|
||||
const string_view &formatted_body
|
||||
{
|
||||
content.get("formatted_body")
|
||||
};
|
||||
|
||||
if(has(formatted_body, user.user_id))
|
||||
return true;
|
||||
|
||||
const string_view &body
|
||||
{
|
||||
content.get("body")
|
||||
|
|
Loading…
Reference in a new issue