mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
modules/client/rooms/messages: Fix loop condition off by one.
This commit is contained in:
parent
06e0c5cbbb
commit
8af5eea783
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ get__messages(client &client,
|
|||
};
|
||||
|
||||
end = event.event_id;
|
||||
if(hit > page.limit || miss >= size_t(max_filter_miss))
|
||||
if(hit >= page.limit || miss >= size_t(max_filter_miss))
|
||||
break;
|
||||
|
||||
const bool ok
|
||||
|
|
Loading…
Reference in a new issue