0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-30 17:34:04 +01:00

ircd:Ⓜ️:event: Fix detection on hashing constructor.

This commit is contained in:
Jason Volk 2019-07-11 18:50:52 -07:00
parent d837753d29
commit 2d7a914eb2
2 changed files with 3 additions and 1 deletions

View file

@ -137,7 +137,7 @@ struct ircd::m::event
event(const json::object &, const id &, const keys &); event(const json::object &, const id &, const keys &);
event(const json::object &, const id &); event(const json::object &, const id &);
event(id::buf &, const json::object &, const string_view &version = "1"); event(id::buf &, const json::object &, const string_view &version = {});
event(const json::object &, const keys &); event(const json::object &, const keys &);
event(const json::object &); event(const json::object &);
explicit event(const json::members &); explicit event(const json::members &);

View file

@ -4055,6 +4055,8 @@ ircd::m::event::event(id::buf &buf,
id{id::v3{buf, source}}: id{id::v3{buf, source}}:
version == "4"? version == "4"?
id{id::v4{buf, source}}: id{id::v4{buf, source}}:
source.has("event_id")?
id{unquote(source.at("event_id"))}:
id{id::v4{buf, source}}, id{id::v4{buf, source}},
} }
{ {