public void deleteConversations(Set<Long> selectedConversations) { DatabaseFactory.getSmsDatabase(context).deleteThreads(selectedConversations); DatabaseFactory.getMmsDatabase(context).deleteThreads(selectedConversations); DatabaseFactory.getDraftDatabase(context).clearDrafts(selectedConversations); deleteThreads(selectedConversations); notifyConversationListeners(selectedConversations); notifyConversationListListeners(); }
public void deleteConversation(long threadId) { DatabaseFactory.getSmsDatabase(context).deleteThread(threadId); DatabaseFactory.getMmsDatabase(context).deleteThread(threadId); DatabaseFactory.getDraftDatabase(context).clearDrafts(threadId); deleteThread(threadId); notifyConversationListeners(threadId); notifyConversationListListeners(); }
public void deleteAllConversations() { DatabaseFactory.getSmsDatabase(context).deleteAllThreads(); DatabaseFactory.getMmsDatabase(context).deleteAllThreads(); DatabaseFactory.getDraftDatabase(context).clearAllDrafts(); deleteAllThreads(); }