mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/m_rooms: Don't throw from summary_del() for non-existent room.
This commit is contained in:
parent
0fa4bdcff7
commit
01ac59df82
1 changed files with 4 additions and 1 deletions
|
@ -420,9 +420,12 @@ ircd::m::rooms::summary_del(const m::room &room)
|
|||
const m::room::state state{public_room_id};
|
||||
const m::event::idx &event_idx
|
||||
{
|
||||
state.get("ircd.rooms", make_state_key(state_key_buf, room.room_id))
|
||||
state.get(std::nothrow, "ircd.rooms", make_state_key(state_key_buf, room.room_id))
|
||||
};
|
||||
|
||||
if(!event_idx)
|
||||
return {};
|
||||
|
||||
const m::event::id::buf event_id
|
||||
{
|
||||
m::event_id(event_idx)
|
||||
|
|
Loading…
Reference in a new issue