The trigger would cause a bug where all chats are removed when we sync the roster from mcs during a reconnect,
because we delete all old contacts and insert the new contacts.
"unsent_composed_message TEXT," + // a composed, but not sent message
"shortcut INTEGER" + // which of 10 slots (if any) this chat occupies
");");
-
- if (MAKE_MESSAGE_PRESENCE_CHAT_PERSISTENT) {
- String contactsTableName = TABLE_CONTACTS;
-
- db.execSQL("CREATE TRIGGER IF NOT EXISTS contact_cleanup " +
- "DELETE ON " + contactsTableName +
- " BEGIN " +
- "DELETE FROM chats WHERE contact_id = OLD._id;" +
- "END");
- }
-
}
@Override