Btw I see that you originally wanted to have this for chatrooms, but this unsane's solution works only for direct conversations.
Support for chats must use different APIs to handle it.
Ya. Pidgin makes the same distinction.
I looked through the limited documentation that you posted and didn't see the chat counterpart. Darn it.