From b1dd6c58c218451cfb863826da91a14a0f585fd4 Mon Sep 17 00:00:00 2001 From: Grishka Date: Fri, 7 Jun 2024 10:52:52 +0300 Subject: [PATCH] fix --- src/main/java/smithereen/storage/GroupStorage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/smithereen/storage/GroupStorage.java b/src/main/java/smithereen/storage/GroupStorage.java index 45cbaaa7..2bbd5157 100644 --- a/src/main/java/smithereen/storage/GroupStorage.java +++ b/src/main/java/smithereen/storage/GroupStorage.java @@ -391,8 +391,8 @@ public static Map getById(Collection _ids) throws SQLEx } } synchronized(GroupStorage.class){ - for(int id:ids){ - putIntoCache(result.get(id)); + for(Group g:result.values()){ + putIntoCache(g); } } return result;