FIX: Check if invite has expired before showing it (PR #10581)

GitHub