Skip to content
Snippets Groups Projects
Commit ec569028 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix mentions rule test

parent c914f8bd
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,6 @@ to_json(nlohmann::json &obj, const PushRule &rule)
if (!rule.pattern.empty())
obj["pattern"] = rule.pattern;
obj["conditions"] = nlohmann::json::array();
for (const auto condition : rule.conditions)
obj["conditions"].push_back(condition);
}
......
......@@ -439,7 +439,7 @@ TEST(Pushrules, RoomRuleMentions)
rule.actions = {mtx::pushrules::actions::dont_notify{}};
client->put_pushrules("global",
"override",
"room",
res.room_id.to_string(),
rule,
[](mtx::http::RequestErr &err) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment