mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +01:00
modules/client/sync/rooms/ephemeral/receipt: Remove redundant apropos conditions.
This commit is contained in:
parent
808a79c005
commit
0c34b92083
1 changed files with 0 additions and 6 deletions
|
@ -160,9 +160,6 @@ ircd::m::sync::_prefetch_message(data &data,
|
||||||
const event::idx &idx)
|
const event::idx &idx)
|
||||||
{
|
{
|
||||||
size_t ret(0);
|
size_t ret(0);
|
||||||
if(!apropos(data, idx))
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
const event::refs refs{idx};
|
const event::refs refs{idx};
|
||||||
refs.for_each(dbs::ref::M_RECEIPT__M_READ, [&ret]
|
refs.for_each(dbs::ref::M_RECEIPT__M_READ, [&ret]
|
||||||
(const event::idx &idx, const auto &type)
|
(const event::idx &idx, const auto &type)
|
||||||
|
@ -180,9 +177,6 @@ ircd::m::sync::_handle_message(data &data,
|
||||||
const event::idx &idx)
|
const event::idx &idx)
|
||||||
{
|
{
|
||||||
bool ret{false};
|
bool ret{false};
|
||||||
if(!apropos(data, idx))
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
const event::refs refs{idx};
|
const event::refs refs{idx};
|
||||||
refs.for_each(dbs::ref::M_RECEIPT__M_READ, [&data, &ret]
|
refs.for_each(dbs::ref::M_RECEIPT__M_READ, [&data, &ret]
|
||||||
(const event::idx &idx, const auto &type)
|
(const event::idx &idx, const auto &type)
|
||||||
|
|
Loading…
Reference in a new issue