0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-14 00:34:18 +01:00

modules/client/rooms/ephemeral/receipt: Minor cleanup.

This commit is contained in:
Jason Volk 2019-09-23 22:25:21 -07:00
parent 575bacee8d
commit 49ce16d74b

View file

@ -142,7 +142,7 @@ ircd::m::sync::_handle_message(data &data,
assert(type == dbs::ref::M_RECEIPT__M_READ);
static const m::event::fetch::opts fopts
{
m::event::keys::include{"content", "sender"}
m::event::keys::include {"content", "sender"}
};
const m::event::fetch event
@ -187,7 +187,10 @@ ircd::m::sync::_handle_message_receipt(data &data,
json::stack::object event_id_
{
content_, unquote(content.at("event_id"))
content_, json::string
{
content.at("event_id")
}
};
json::stack::object m_read_
@ -202,7 +205,10 @@ ircd::m::sync::_handle_message_receipt(data &data,
json::stack::member
{
sender_, "ts", json::value(content.at("ts"))
sender_, "ts", json::value
{
content.at("ts")
}
};
return true;