mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Implement copy restriction and send as peer
This commit is contained in:
@@ -231,8 +231,8 @@ public extension TelegramEngine {
|
||||
return _internal_toggleShouldChannelMessagesSignatures(account: self.account, peerId: peerId, enabled: enabled)
|
||||
}
|
||||
|
||||
public func toggleChannelMessageCopyProtection(peerId: PeerId, enabled: Bool) -> Signal<Void, NoError> {
|
||||
return _internal_toggleChannelMessageCopyProtection(account: self.account, peerId: peerId, enabled: enabled)
|
||||
public func toggleMessageCopyProtection(peerId: PeerId, enabled: Bool) -> Signal<Void, NoError> {
|
||||
return _internal_toggleMessageCopyProtection(account: self.account, peerId: peerId, enabled: enabled)
|
||||
}
|
||||
|
||||
public func requestPeerPhotos(peerId: PeerId) -> Signal<[TelegramPeerPhoto], NoError> {
|
||||
@@ -660,6 +660,14 @@ public extension TelegramEngine {
|
||||
}
|
||||
|> ignoreValues
|
||||
}
|
||||
|
||||
public func sendAsAvailablePeers(peerId: PeerId) -> Signal<[FoundPeer], NoError> {
|
||||
return _internal_cachedPeerSendAsAvailablePeers(account: self.account, peerId: peerId)
|
||||
}
|
||||
|
||||
public func updatePeerSendAsPeer(peerId: PeerId, sendAs: PeerId) -> Signal<Never, UpdatePeerSendAsPeerError> {
|
||||
return _internal_updatePeerSendAsPeer(account: self.account, peerId: peerId, sendAs: sendAs)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user