It depends on whether you view the material universe or consciousness as fundamental.
If the fundamental component of reality is the material universe and consciousness is a random result of blind material forces, then it makes sense to say that consciousness ends at death.
But if consciousness is findamental then it makes more sense to view the material world as the canvas on which a more basic or essential aspect of being is being projected.
If I am sitting on a chair what do I really know? Do I know that the chair exists but that my sense of self sitting on the chair may be a delusion? Or do I know that my sense of sitting on the chair is real, and the chair may not be real outside of my perception?
Materialists seem to come down on the side of the chair being real regardless of what the person feels. I’m not sure that makes a lot of sense. Since our direct experience is our own sense and perception, shouldn’t we regard that as fundamental and view the material world as secondary?