mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
@@ -716,11 +716,15 @@ func enqueueMessages(transaction: Transaction, account: Account, peerId: PeerId,
|
|||||||
|
|
||||||
var authorId: PeerId?
|
var authorId: PeerId?
|
||||||
if let sendAsPeer = sendAsPeer {
|
if let sendAsPeer = sendAsPeer {
|
||||||
if let peer = peer as? TelegramChannel, case let .broadcast(info) = peer.info, info.flags.contains(.messagesShouldHaveProfiles) {
|
if let peer = peer as? TelegramChannel, case let .broadcast(info) = peer.info {
|
||||||
|
if info.flags.contains(.messagesShouldHaveProfiles) {
|
||||||
authorId = sendAsPeer.id
|
authorId = sendAsPeer.id
|
||||||
} else {
|
} else {
|
||||||
authorId = peer.id
|
authorId = peer.id
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
authorId = sendAsPeer.id
|
||||||
|
}
|
||||||
} else if let peer = peer as? TelegramChannel {
|
} else if let peer = peer as? TelegramChannel {
|
||||||
if case .broadcast = peer.info {
|
if case .broadcast = peer.info {
|
||||||
authorId = peer.id
|
authorId = peer.id
|
||||||
|
|||||||
Reference in New Issue
Block a user