{"action":"created","issue":{"url":"https://api.github.com/repos/leancloud/LeanMessage-Demo/issues/14","labels_url":"https://api.github.com/repos/leancloud/LeanMessage-Demo/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/leancloud/LeanMessage-Demo/issues/14/comments","events_url":"https://api.github.com/repos/leancloud/LeanMessage-Demo/issues/14/events","html_url":"https://github.com/leancloud/LeanMessage-Demo/issues/14","id":84949700,"number":14,"title":"删除 loadMessagesWhenInit 以及 loadOldMessages 这 2 个实现","user":{"login":"wujun4code","id":5119542,"avatar_url":"https://avatars.githubusercontent.com/u/5119542?v=3","gravatar_id":"","url":"https://api.github.com/users/wujun4code","html_url":"https://github.com/wujun4code","followers_url":"https://api.github.com/users/wujun4code/followers","following_url":"https://api.github.com/users/wujun4code/following{/other_user}","gists_url":"https://api.github.com/users/wujun4code/gists{/gist_id}","starred_url":"https://api.github.com/users/wujun4code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wujun4code/subscriptions","organizations_url":"https://api.github.com/users/wujun4code/orgs","repos_url":"https://api.github.com/users/wujun4code/repos","events_url":"https://api.github.com/users/wujun4code/events{/privacy}","received_events_url":"https://api.github.com/users/wujun4code/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-04T06:55:23Z","updated_at":"2015-06-05T03:35:46Z","closed_at":null,"body":"@lzwjava \r\n\r\n用户在阅读 Demo 代码的时候初衷是看我们如何发送消息和接收消息，对本地缓存这种只有生产代码才会出现的逻辑，我们的开发者在第一次接触的时候完全不需要出现在他们的视线范围内。\r\n因为只要我们的消息准确送达，做不做缓存，怎么做缓存，高级开发者都有自己的一套逻辑，Demo 做这个展现有点多余。"},"comment":{"url":"https://api.github.com/repos/leancloud/LeanMessage-Demo/issues/comments/109153844","html_url":"https://github.com/leancloud/LeanMessage-Demo/issues/14#issuecomment-109153844","issue_url":"https://api.github.com/repos/leancloud/LeanMessage-Demo/issues/14","id":109153844,"user":{"login":"lzwjava","id":5022872,"avatar_url":"https://avatars.githubusercontent.com/u/5022872?v=3","gravatar_id":"","url":"https://api.github.com/users/lzwjava","html_url":"https://github.com/lzwjava","followers_url":"https://api.github.com/users/lzwjava/followers","following_url":"https://api.github.com/users/lzwjava/following{/other_user}","gists_url":"https://api.github.com/users/lzwjava/gists{/gist_id}","starred_url":"https://api.github.com/users/lzwjava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzwjava/subscriptions","organizations_url":"https://api.github.com/users/lzwjava/orgs","repos_url":"https://api.github.com/users/lzwjava/repos","events_url":"https://api.github.com/users/lzwjava/events{/privacy}","received_events_url":"https://api.github.com/users/lzwjava/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T03:35:46Z","updated_at":"2015-06-05T03:35:46Z","body":"支持这个还有个考虑是，可以看到很多人在上面发过消息。像网页版，如果进去什么都没有，你可能并不觉得它能正常收发消息，需要自己测一测，如果进去，看到一页都是别人发的消息，就会立马上手研究代码，而且感觉也不少人用，比较可靠。\r\n\r\n这里用的是实时向服务端请求消息。等本地缓存出来后，我就换成我们提供的本地缓存的接口吧。\r\n\r\n因为一般地，聊天不仅要考虑收发消息，还要考虑显示过去的消息。"}}