mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-01 04:08:07 +00:00
no message
This commit is contained in:
parent
32d12c5940
commit
752c49e077
@ -131,7 +131,7 @@ public func addPeerAdmin(account: Account, peerId: PeerId, adminId: PeerId) -> S
|
|||||||
|> mapError { error -> AddPeerAdminError in
|
|> mapError { error -> AddPeerAdminError in
|
||||||
return .addMemberError(error)
|
return .addMemberError(error)
|
||||||
}
|
}
|
||||||
|> then(account.network.request(Api.functions.channels.editAdmin(channel: inputChannel, userId: inputUser, role: .channelRoleModerator))
|
|> then(account.network.request(Api.functions.channels.editAdmin(channel: inputChannel, userId: inputUser, role: .channelRoleEditor))
|
||||||
|> mapError { error -> AddPeerAdminError in
|
|> mapError { error -> AddPeerAdminError in
|
||||||
return .generic
|
return .generic
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user