mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
ircd:Ⓜ️ Overload exists(room) in addition to room::id.
This commit is contained in:
parent
b5ad6b55a6
commit
dc59cb8880
2 changed files with 7 additions and 0 deletions
|
@ -25,6 +25,7 @@ namespace ircd::m
|
|||
bool my(const room &);
|
||||
|
||||
// [GET] Util
|
||||
bool exists(const room &);
|
||||
bool exists(const id::room &);
|
||||
|
||||
id::room room_id(const mutable_buffer &, const id::room_alias &);
|
||||
|
|
|
@ -94,6 +94,12 @@ ircd::m::exists(const id::room &room_id)
|
|||
return bool(it);
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::exists(const room &room)
|
||||
{
|
||||
return exists(room.room_id);
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::my(const room &room)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue