api: implement getChatWindowInfo