refactor to make it easy-understand
Merge branch 'master' of github.com:leancloud/leanchat