getAllConversations method

Future<void> getAllConversations()

Get all conversations

Implementation

Future<void> getAllConversations() async {
  final response = await _conversationRepository.getAllConversations();
  if (response.status == 'success') {
    _conversationsService.allConversationsList.value = response.data ?? [];

    update();
    _storageService.setString(
        'bodsquareConversations', jsonEncode(response.toJson()));
  }
  update();
  //log(response.toString());
}