Ensure that the initial sync call has a populated after time set (5 minutes in the past relative to computer's clock) to allow for initial population of data. Additionally, ensure that after:'last' will never get stuck for users without much activity by requiring that the date used never be more than 5 minutes in the past. Finally, add a little more padding for before: and after: calls (100ms rather than 1ms) to better handle chats inserted in the db out-of-order.
Fixes #106
Ensure that the initial sync call has a populated after time set (5 minutes in the past relative to computer's clock) to allow for initial population of data. Additionally, ensure that after:'last' will never get stuck for users without much activity by requiring that the date used never be more than 5 minutes in the past. Finally, add a little more padding for before: and after: calls (100ms rather than 1ms) to better handle chats inserted in the db out-of-order.