]> nmode's Git Repositories - signal-cli/commitdiff
Fix possible db dead lock
authorAsamK <asamk@gmx.de>
Sun, 8 Sep 2024 07:22:52 +0000 (09:22 +0200)
committerAsamK <asamk@gmx.de>
Sun, 8 Sep 2024 07:22:52 +0000 (09:22 +0200)
Fixes #1483

lib/src/main/java/org/asamk/signal/manager/storage/groups/GroupStore.java

index 3dac4876288befe196bcf51e02d8f52a21a62a4e..c4c075bfd8201852e49a8d28479f0333e8e4a278 100644 (file)
@@ -271,7 +271,7 @@ public class GroupStore {
     private GroupInfoV2 getGroupOrPartialMigrate(
             Connection connection, final GroupMasterKey groupMasterKey, final GroupIdV2 groupId
     ) throws SQLException {
-        switch (getGroup(groupId)) {
+        switch (getGroup(connection, (GroupId) groupId)) {
             case GroupInfoV1 groupInfoV1 -> {
                 // Received a v2 group message for a v1 group, we need to locally migrate the group
                 deleteGroup(connection, groupInfoV1.getGroupId());