Skip to content
Snippets Groups Projects
Verified Commit dedb269d authored by Joe Donofry's avatar Joe Donofry
Browse files

Fix linting issues

parent b56083df
No related branches found
No related tags found
No related merge requests found
......@@ -43,8 +43,8 @@ using TimelineEvents = std::vector<mtx::events::collections::TimelineEven
using StateEvents = std::vector<mtx::events::collections::StateEvents>;
using StrippedEvents = std::vector<mtx::events::collections::StrippedEvents>;
namespace states = mtx::events::state;
namespace msgs = mtx::events::msg;
namespace states = mtx::events::state;
namespace msgs = mtx::events::msg;
struct TimelineEventVisitor : public boost::static_visitor<json>
{
......
......@@ -109,7 +109,7 @@ compose_timeline_events(json &events,
const std::vector<mtx::events::collections::TimelineEvents> &container)
{
const auto c = container.at(0);
events = boost::apply_visitor(TimelineEventVisitor(), c);
events = boost::apply_visitor(TimelineEventVisitor(), c);
}
void
......
......@@ -38,9 +38,9 @@ void
to_json(json &obj, const Notification &res)
{
obj["actions"] = res.actions;
obj["read"] = res.read;
obj["read"] = res.read;
obj["room_id"] = res.room_id;
obj["ts"] = res.ts;
obj["ts"] = res.ts;
// HACK to work around the fact that there isn't
// a method to parse a timeline event from a json object.
......
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