Close dangling groups cursor.

fork-5.53.8
Greyson Parrelli 2020-03-16 10:44:24 -04:00
rodzic d90e3dc210
commit 1e2a27f902
1 zmienionych plików z 22 dodań i 20 usunięć

Wyświetl plik

@ -69,7 +69,8 @@ public class IdentityUtil {
long time = System.currentTimeMillis();
SmsDatabase smsDatabase = DatabaseFactory.getSmsDatabase(context);
GroupDatabase groupDatabase = DatabaseFactory.getGroupDatabase(context);
GroupDatabase.Reader reader = groupDatabase.getGroups();
try (GroupDatabase.Reader reader = groupDatabase.getGroups()) {
GroupDatabase.GroupRecord groupRecord;
@ -96,6 +97,7 @@ public class IdentityUtil {
}
}
}
}
if (remote) {
IncomingTextMessage incoming = new IncomingTextMessage(recipient.getId(), 1, time, null, Optional.absent(), 0, false);