The metadata protected E2E messaging in xx network takes a similar approach. It stores for a set period of time (21days) since it can't be known when the recipient receives the messages.
It's definitely the right design for private messaging applications.