modification:
1.change the get chat records API, simplified.