Closing chat window for contact tears down OTR session
Currently, closing a chat window tears down the OTR session. Each time a new chat window is opened, a new OTR session must be negotiated.
I'm somewhat of a compulsive window closer, so if I'm not actively chatting I like to close the chat window for a contact. This is driving some of my Adium using contacts crazy, because they are missing a lot of messages that are fired off by me immediately after re-opening a chat window. Or the messages are resent because the OTR session was still being negotiated when I sent them.
I'm not sure if the existing behavior is deliberate, maybe there's already good reason it works this way that I'm not aware.
What I would prefer is for the OTR session for a given contact persist regardless of whether a chat window is open, so long as both parties remain online. If one party goes offline, then tear down the session.