0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-29 07:18:20 +02:00

modules/m_rooms: Don't throw from summary_del() for non-existent room.

This commit is contained in:
Jason Volk 2019-04-17 21:05:31 -07:00
parent 0fa4bdcff7
commit 01ac59df82

View file

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