[PureChat] Fix the bug when user log out.