mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-08 20:08:35 +00:00
Do not update threads that do not exist.
This commit is contained in:
parent
76dd09bc50
commit
5776c048ea
@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
} finally {
|
||||
|
Loading…
x
Reference in New Issue
Block a user