Function for getting ChatUser object from user id
ChatUser getUserFromId(String userId) => chatUsers.firstWhere((element) => element.id == userId);