mirror of
https://github.com/matrix-construct/construct
synced 2024-11-04 21:08:57 +01:00
ircd:Ⓜ️ Relax room ctor event_id parameter for empty string_view{}.
This commit is contained in:
parent
505b3b5115
commit
8bb31107bd
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue