0
0
Fork 0
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:
Jason Volk 2020-04-08 13:26:50 -07:00
parent 06e0c5cbbb
commit 8af5eea783

View file

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