ccUserBlocked method

  1. @override
void ccUserBlocked(
  1. User user
)
override

This will get triggered when the logged in user blocks another user

Implementation

@override
void ccUserBlocked(User user) {
  int matchingIndex = list.indexWhere((Conversation conversation) =>
      (conversation.conversationType == ReceiverTypeConstants.user &&
          (conversation.conversationWith as User).uid == user.uid));
  removeElementAt(matchingIndex);
}