From 61174dd0d3632f551735bea9c8ea22c0bf218427 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 11 Nov 2024 21:27:40 +0000 Subject: [PATCH] check if lazyset already contains user prior to querying Signed-off-by: Jason Volk --- src/api/client/message.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/client/message.rs b/src/api/client/message.rs index e8306de9..cc636511 100644 --- a/src/api/client/message.rs +++ b/src/api/client/message.rs @@ -192,6 +192,10 @@ pub(crate) async fn update_lazy( return lazy; } + if lazy.contains(event.sender()) { + return lazy; + } + if !services .rooms .lazy_loading