Support multiple pinned threads

This commit is contained in:
Ali
2022-11-04 19:15:25 +04:00
parent f1864a43b9
commit fa95906962
5 changed files with 165 additions and 63 deletions

View File

@@ -386,6 +386,12 @@ func _internal_setForumChannelPinnedTopics(account: Account, id: EnginePeer.Id,
return .fail(.generic)
}
#if DEBUG
if "".isEmpty {
return .complete()
}
#endif
return account.network.request(Api.functions.channels.reorderPinnedForumTopics(
channel: inputChannel,
order: threadIds.map(Int32.init(clamping:))