From 0c34b92083a8683c6fe5da715f302fc0aab86f20 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 23 Jan 2020 10:52:56 -0800 Subject: [PATCH] modules/client/sync/rooms/ephemeral/receipt: Remove redundant apropos conditions. --- modules/client/sync/rooms/ephemeral/receipt.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/client/sync/rooms/ephemeral/receipt.cc b/modules/client/sync/rooms/ephemeral/receipt.cc index 9749117a5..11ecf08b4 100644 --- a/modules/client/sync/rooms/ephemeral/receipt.cc +++ b/modules/client/sync/rooms/ephemeral/receipt.cc @@ -160,9 +160,6 @@ ircd::m::sync::_prefetch_message(data &data, const event::idx &idx) { size_t ret(0); - if(!apropos(data, idx)) - return ret; - const event::refs refs{idx}; refs.for_each(dbs::ref::M_RECEIPT__M_READ, [&ret] (const event::idx &idx, const auto &type) @@ -180,9 +177,6 @@ ircd::m::sync::_handle_message(data &data, const event::idx &idx) { bool ret{false}; - if(!apropos(data, idx)) - return ret; - const event::refs refs{idx}; refs.for_each(dbs::ref::M_RECEIPT__M_READ, [&data, &ret] (const event::idx &idx, const auto &type)