A deliberately vague "design a chat application": clarify HLD vs LLD, sketch the client-server flow and offline updates, then the schema, classes and client code.
A deliberately vague "design a chat application": clarify HLD vs LLD, sketch the client-server flow and offline updates, then the schema, classes and client code.
The discussion opens with the full question.