{"action":"created","issue":{"url":"https://api.github.com/repos/mailboxer/mailboxer/issues/361","labels_url":"https://api.github.com/repos/mailboxer/mailboxer/issues/361/labels{/name}","comments_url":"https://api.github.com/repos/mailboxer/mailboxer/issues/361/comments","events_url":"https://api.github.com/repos/mailboxer/mailboxer/issues/361/events","html_url":"https://github.com/mailboxer/mailboxer/pull/361","id":97314144,"number":361,"title":"Relying on id in addition to the created_at timestamp to load entries chronologically","user":{"login":"modsaid","id":15653,"avatar_url":"https://avatars.githubusercontent.com/u/15653?v=3","gravatar_id":"","url":"https://api.github.com/users/modsaid","html_url":"https://github.com/modsaid","followers_url":"https://api.github.com/users/modsaid/followers","following_url":"https://api.github.com/users/modsaid/following{/other_user}","gists_url":"https://api.github.com/users/modsaid/gists{/gist_id}","starred_url":"https://api.github.com/users/modsaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modsaid/subscriptions","organizations_url":"https://api.github.com/users/modsaid/orgs","repos_url":"https://api.github.com/users/modsaid/repos","events_url":"https://api.github.com/users/modsaid/events{/privacy}","received_events_url":"https://api.github.com/users/modsaid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-26T12:53:26Z","updated_at":"2015-11-03T19:35:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mailboxer/mailboxer/pulls/361","html_url":"https://github.com/mailboxer/mailboxer/pull/361","diff_url":"https://github.com/mailboxer/mailboxer/pull/361.diff","patch_url":"https://github.com/mailboxer/mailboxer/pull/361.patch"},"body":"It happens of messages were created nearly instantly (in test cases for example) that they get the same  ```created_at```,  which results in the wrong ```conversation#last_message```.  taking the ID into consideration can be helpful if the created_at are for any reason equal"},"comment":{"url":"https://api.github.com/repos/mailboxer/mailboxer/issues/comments/153464086","html_url":"https://github.com/mailboxer/mailboxer/pull/361#issuecomment-153464086","issue_url":"https://api.github.com/repos/mailboxer/mailboxer/issues/361","id":153464086,"user":{"login":"rposborne","id":243989,"avatar_url":"https://avatars.githubusercontent.com/u/243989?v=3","gravatar_id":"","url":"https://api.github.com/users/rposborne","html_url":"https://github.com/rposborne","followers_url":"https://api.github.com/users/rposborne/followers","following_url":"https://api.github.com/users/rposborne/following{/other_user}","gists_url":"https://api.github.com/users/rposborne/gists{/gist_id}","starred_url":"https://api.github.com/users/rposborne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rposborne/subscriptions","organizations_url":"https://api.github.com/users/rposborne/orgs","repos_url":"https://api.github.com/users/rposborne/repos","events_url":"https://api.github.com/users/rposborne/events{/privacy}","received_events_url":"https://api.github.com/users/rposborne/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T19:35:35Z","updated_at":"2015-11-03T19:35:35Z","body":"Just a note, that created_at can easily have collisions on systems that don't support nanosecond timestamps in the DB.  We had a similar issue in paper trail gem awhile back with Mysql only supporting milliseconds.  \r\n\r\nJust a use case to back up the addition of this. :)"}}