openForMember method
Implementation
Widget openForMember(AppModel app, String thisMemberId, String otherMemberId,
MembersType membersType, List<String> blockedMembers) {
return BlocProvider<ChatBloc>(
create: (context) => ChatBloc(
thisMemberId: thisMemberId,
appId: app.documentID,
blockedMembers: blockedMembers,
)..add(OpenChatWithAMemberEvent(otherMemberId)),
child: ChatWidget(
blockedMembers: blockedMembers,
app: app,
memberId: thisMemberId,
canAddMember: false,
membersType: membersType));
}