From fa02d4169144d21d64b0486efada178e2f3739cd Mon Sep 17 00:00:00 2001 From: Anton Chekulaev Date: Thu, 1 Oct 2020 21:26:28 +1000 Subject: [PATCH] Group database cleanup. --- .../thoughtcrime/securesms/database/GroupDatabase.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/org/thoughtcrime/securesms/database/GroupDatabase.java b/src/org/thoughtcrime/securesms/database/GroupDatabase.java index 95db6f1b99..5c03fd4010 100644 --- a/src/org/thoughtcrime/securesms/database/GroupDatabase.java +++ b/src/org/thoughtcrime/securesms/database/GroupDatabase.java @@ -274,15 +274,6 @@ public class GroupDatabase extends Database implements LokiGroupDatabaseProtocol Recipient.applyCached(Address.fromSerialized(groupId), recipient -> recipient.setGroupAvatarId(avatarId == 0 ? null : avatarId)); } - public boolean hasAvatar(String groupId) { - try (Cursor cursor = databaseHelper.getReadableDatabase().rawQuery( - "SELECT EXISTS(SELECT 1 FROM "+TABLE_NAME+" WHERE "+GROUP_ID+" == ? AND "+AVATAR+" NOT NULL LIMIT 1)", - new String[]{groupId})) { - cursor.moveToFirst(); - return cursor.getInt(0) == 1; - } - } - public void updateMembers(String groupId, List
members) { Collections.sort(members);