Display presence changes in normal chats.
Refactor `main`.