Add getRecentHistory() function to the library to return the recent messages in the room