Skip to content
This repository was archived by the owner on Jan 28, 2019. It is now read-only.

Commit 1a152d8

Browse files
committed
next_cursor
1 parent 21e0166 commit 1a152d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/WebAPI.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ extension WebAPI {
11081108
cursor: String? = nil,
11091109
limit: Int? = nil,
11101110
types: [ConversationType]? = nil,
1111-
success: ((_ channels: [[String: Any]]?) -> Void)?,
1111+
success: ((_ channels: [[String: Any]]?, _ nextCursor: String?) -> Void)?,
11121112
failure: FailureClosure?
11131113
) {
11141114
var parameters: [String: Any] = ["token": token, "exclude_archived": excludeArchived]
@@ -1122,7 +1122,7 @@ extension WebAPI {
11221122
parameters["types"] = types.map({ $0.rawValue }).joined(separator: ",")
11231123
}
11241124
networkInterface.request(.conversationsList, parameters: parameters, successClosure: {(response) in
1125-
success?(response["channels"] as? [[String: Any]])
1125+
success?(response["channels"] as? [[String: Any]], (response["response_metadata"] as? [String: Any])?["next_cursor"] as? String)
11261126
}) {(error) in
11271127
failure?(error)
11281128
}

0 commit comments

Comments
 (0)