From a628f882060e22bcc7464e83052cf241221069e0 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 12 Apr 2018 14:10:45 -0700 Subject: [PATCH] ircd::m::room: Adjust expectations for fetching event after index seek. --- ircd/m/room.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ircd/m/room.cc b/ircd/m/room.cc index 5c6ed3024..bbe54a75d 100644 --- a/ircd/m/room.cc +++ b/ircd/m/room.cc @@ -540,8 +540,7 @@ const event_id }; - if(event.valid(event_id)) - closure(event); + closure(event); }}); } @@ -586,11 +585,10 @@ const { const event::fetch event { - event_id, std::nothrow + event_id }; - if(event.valid(event_id)) - closure(event); + closure(event); }}); }