destroy chat dialog when delete friends

在删除好友之后查找当前打开的聊天对话框,因为该对话已经无效了.所以需要关闭
该对话框

Signed-off-by: xiehuc <xiehuc@gmail.com>