Work lay offs && mat leave

I’ve been laid off for three weeks and will need to claim ei.... will this affect my mat leave? Or will this get voided since it was mandatory. I won’t have enough hours from the time I’m back to make ei mat leave..