mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user