XMPP also has multiuser chat history, so you can join a groupchat and see previous conversations. This isn't well-implemented in all clients, but servers tend to support it in one functionable way or another. I'm perfectly happy with the MUC archive in #prosody for example.