mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Re-enable FTS optimization after deletes.
This commit is contained in:
@@ -1533,12 +1533,11 @@ public class MessageTable extends DatabaseTable implements MessageTypes, Recipie
|
||||
return releaseChannelThreadId;
|
||||
}
|
||||
|
||||
public void deleteGroupStoryReplies(long parentStoryId) {
|
||||
private void deleteGroupStoryReplies(long parentStoryId) {
|
||||
SQLiteDatabase db = databaseHelper.getSignalWritableDatabase();
|
||||
String[] args = SqlUtil.buildArgs(parentStoryId);
|
||||
|
||||
db.delete(TABLE_NAME, PARENT_STORY_ID + " = ?", args);
|
||||
OptimizeMessageSearchIndexJob.enqueue();
|
||||
}
|
||||
|
||||
public int deleteStoriesOlderThan(long timestamp, boolean hasSeenReleaseChannelStories) {
|
||||
@@ -1940,6 +1939,8 @@ public class MessageTable extends DatabaseTable implements MessageTypes, Recipie
|
||||
db.endTransaction();
|
||||
}
|
||||
|
||||
OptimizeMessageSearchIndexJob.enqueue();
|
||||
|
||||
ApplicationDependencies.getDatabaseObserver().notifyMessageUpdateObservers(new MessageId(messageId));
|
||||
ApplicationDependencies.getDatabaseObserver().notifyConversationListListeners();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user