try implement segment query by token but there's some problem. The timestamp order of the messages fetched is asc not desc