Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8337c169 authored by Philip Whitehouse's avatar Philip Whitehouse
Browse files

Delete data from Full-Text-Search table on clear()

parent 6beb9902
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -331,6 +331,10 @@ public class LocalStore extends Store implements Serializable {
                // Don't delete deleted messages. They are essentially placeholders for UIDs of messages that have
                // been deleted locally.
                db.delete("messages", "deleted = 0", null);

                // We don't need the search data now either
                db.delete("messages_fulltext", null, null);

                return null;
            }
        });