Working copy

maintaining previous chat window open/closed state