mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
ircd:Ⓜ️ Add id::USER case to room_id().
This commit is contained in:
parent
ce9a9e58b4
commit
4f4019a2a0
1 changed files with 6 additions and 0 deletions
|
@ -4667,6 +4667,12 @@ ircd::m::room_id(const mutable_buffer &out,
|
|||
case id::ROOM:
|
||||
return id::room{out, room_id_or_alias};
|
||||
|
||||
case id::USER:
|
||||
{
|
||||
const m::user::room user_room(room_id_or_alias);
|
||||
return string_view{data(out), copy(out, user_room.room_id)};
|
||||
}
|
||||
|
||||
default:
|
||||
return room_id(out, id::room_alias{room_id_or_alias});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue