0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-01 01:28:54 +02:00

modules/m_user: Search the formatted_body for a user mxid first.

This commit is contained in:
Jason Volk 2018-09-14 06:43:25 -07:00
parent 7b267e1c6d
commit 1dc83d7801

View file

@ -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")