diff --git a/vendor/github.com/matterbridge/matterclient/messages.go b/vendor/github.com/matterbridge/matterclient/messages.go index e44061ba..60363285 100644 --- a/vendor/github.com/matterbridge/matterclient/messages.go +++ b/vendor/github.com/matterbridge/matterclient/messages.go @@ -58,7 +58,7 @@ func (m *Client) GetFileLinks(filenames []string) []string { func (m *Client) GetPosts(channelID string, limit int) *model.PostList { for { - res, resp, err := m.Client.GetPostsForChannel(channelID, 0, limit, "", false) + res, resp, err := m.Client.GetPostsForChannel(channelID, 0, limit, "", true) if err == nil { return res } @@ -69,26 +69,9 @@ func (m *Client) GetPosts(channelID string, limit int) *model.PostList { } } -func (m *Client) GetPostThread(postID string) *model.PostList { - opts := model.GetPostsOptions{ - CollapsedThreads: false, - Direction: "up", - } - for { - res, resp, err := m.Client.GetPostThreadWithOpts(postID, "", opts) - if err == nil { - return res - } - - if err := m.HandleRatelimit("GetPostThread", resp); err != nil { - return nil - } - } -} - func (m *Client) GetPostsSince(channelID string, time int64) *model.PostList { for { - res, resp, err := m.Client.GetPostsSince(channelID, time, false) + res, resp, err := m.Client.GetPostsSince(channelID, time, true) if err == nil { return res }