diff --git a/lib/structs/pushrules.cpp b/lib/structs/pushrules.cpp index 4564888f7c85c8842be723164fec7d39e965b7fe..02d33506c1dfc5bc94f079ac21144a451f018da7 100644 --- a/lib/structs/pushrules.cpp +++ b/lib/structs/pushrules.cpp @@ -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); } diff --git a/tests/pushrules.cpp b/tests/pushrules.cpp index 822dad28f053d1ba8320b120163f1a396a70f813..9cb1171d1eaded05433354403f815885b8b1b8e0 100644 --- a/tests/pushrules.cpp +++ b/tests/pushrules.cpp @@ -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) {