Revert "Remove purechat"

This reverts commit d713186997fd28a9fcf6775901b8d091547ba63a.