mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Fix send as
This commit is contained in:
parent
ca9898eb83
commit
9455250571
@ -716,10 +716,14 @@ func enqueueMessages(transaction: Transaction, account: Account, peerId: PeerId,
|
||||
|
||||
var authorId: PeerId?
|
||||
if let sendAsPeer = sendAsPeer {
|
||||
if let peer = peer as? TelegramChannel, case let .broadcast(info) = peer.info, info.flags.contains(.messagesShouldHaveProfiles) {
|
||||
authorId = sendAsPeer.id
|
||||
if let peer = peer as? TelegramChannel, case let .broadcast(info) = peer.info {
|
||||
if info.flags.contains(.messagesShouldHaveProfiles) {
|
||||
authorId = sendAsPeer.id
|
||||
} else {
|
||||
authorId = peer.id
|
||||
}
|
||||
} else {
|
||||
authorId = peer.id
|
||||
authorId = sendAsPeer.id
|
||||
}
|
||||
} else if let peer = peer as? TelegramChannel {
|
||||
if case .broadcast = peer.info {
|
||||
|
Loading…
x
Reference in New Issue
Block a user