diff --git a/include/ircd/m/room.h b/include/ircd/m/room.h index f8f75a1fb..9d77b9a75 100644 --- a/include/ircd/m/room.h +++ b/include/ircd/m/room.h @@ -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;