1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-07-29 11:18:30 +00:00

check if lazyset already contains user prior to querying

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-11-11 21:27:40 +00:00
parent e2afaa9f03
commit 61174dd0d3

View file

@ -192,6 +192,10 @@ pub(crate) async fn update_lazy(
return lazy;
}
if lazy.contains(event.sender()) {
return lazy;
}
if !services
.rooms
.lazy_loading