0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 08:12:37 +01:00

modules/client/rooms/read_markers: Minor cleanup.

This commit is contained in:
Jason Volk 2020-09-24 02:44:00 -07:00
parent 03b7e5af1e
commit 9a15f712c5

View file

@ -63,7 +63,9 @@ handle_m_fully_read(client &client,
const m::event::id &event_id
{
event_id_buf?: m::event::id{input}
event_id_buf?
m::event::id{event_id_buf}:
m::event::id{input}
};
const m::user::room_account_data account_data
@ -78,7 +80,7 @@ handle_m_fully_read(client &client,
{
const json::string &prior_id
{
content.get("event_id")
content["event_id"]
};
duplicate = prior_id == event_id;