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:
parent
03b7e5af1e
commit
9a15f712c5
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue