getChatProfileInfos method

Future<void> getChatProfileInfos(
  1. BuildContext context,
  2. CustomInfoProvider userInfoProvider
)

Implementation

Future<void> getChatProfileInfos(
    BuildContext context, CustomInfoProvider userInfoProvider) async {
  for (int i = 0; i < conversationsToForward.length; i++) {
    RCKChatProfileInfo chatProfileInfo = await userInfoProvider(
        message: null, conversation: conversationsToForward[i]);
    chatProfileInfos.add(chatProfileInfo);
  }
  notifyListeners();
}