Give your in-app chat a browser-side tool.
Recent revisions are kept. Restoring one creates a new revision.