0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd:Ⓜ️ Relax room ctor event_id parameter for empty string_view{}.

This commit is contained in:
Jason Volk 2018-03-03 23:37:40 -08:00
parent 505b3b5115
commit 8bb31107bd

View file

@ -112,9 +112,13 @@ struct ircd::m::room
bool membership(const m::id::user &, const string_view &membership = "join") const;
string_view membership(const mutable_buffer &out, const m::id::user &) const;
room(const id &room_id, const event::id &event_id = {})
room(const id &room_id, const string_view &event_id)
:room_id{room_id}
,event_id{event_id? event::id{event_id} : event::id{}}
{}
room(const id &room_id)
:room_id{room_id}
,event_id{event_id}
{}
room() = default;