Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send timestamp in syncrecentconversations #47

Open
timvdalen opened this issue Apr 25, 2016 · 2 comments
Open

Send timestamp in syncrecentconversations #47

timvdalen opened this issue Apr 25, 2016 · 2 comments

Comments

@timvdalen
Copy link
Contributor

It seems like conversations/syncrecentconversations can accept a timestamp (in microseconds), which allows you to grab older conversations.

It would be great if the syncrecentconversations call could take this argument.
The timestamp is at index 1 of the request payload.

I'll see if I can make something work in the library.

@timvdalen
Copy link
Contributor Author

Adding the timestamp as a second argument here: https://github.com/algesten/hangupsjs/blob/master/src/client.coffee#L467 seems to work.
The gmail web client sends null for the first request, so that could be a default parameter.

Since the converstation state also returns timestamps for each of the converstations, a higher level 'find all converstations' function could be implemented by just repeating the request for older timestamps until the result is empty (although I think there's some way to tell if a request is the last one, since the gmail web client never makes a request which turns out to be empty).

@timvdalen
Copy link
Contributor Author

Just checked yakyak/yakyak, that also only shows the limited results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant