clear method

Future<void> clear({
  1. bool clearRuutUserStorage = true,
})

Implementation

Future<void> clear({bool clearRuutUserStorage = true}) async {
  await conversationDao.deleteConversation();
  await messagesDao.clear();
  if (clearRuutUserStorage) {
    await userDao.deleteUser();
    await contactDao.deleteContact();
  }
}