mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 09:20:23 +00:00
Do not update threads that do not exist.
This commit is contained in:
@@ -670,13 +670,11 @@ public class SmsDatabase extends MessagingDatabase {
|
||||
values.put(BODY, body);
|
||||
|
||||
db.insert(TABLE_NAME, null, values);
|
||||
});
|
||||
|
||||
for (long threadId : threadIdsToUpdate) {
|
||||
DatabaseFactory.getThreadDatabase(context).update(threadId, true);
|
||||
notifyConversationListeners(threadId);
|
||||
ApplicationDependencies.getJobManager().add(new TrimThreadJob(threadId));
|
||||
}
|
||||
DatabaseFactory.getThreadDatabase(context).update(threadId, true);
|
||||
notifyConversationListeners(threadId);
|
||||
ApplicationDependencies.getJobManager().add(new TrimThreadJob(threadId));
|
||||
});
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
} finally {
|
||||
|
Reference in New Issue
Block a user