0
0
Fork 0
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:
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) 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 const string_view &body
{ {
content.get("body") content.get("body")