0
0
Fork 0
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:
Jason Volk 2019-04-10 15:42:04 -07:00
parent ce9a9e58b4
commit 4f4019a2a0

View file

@ -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});
}