mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 11:23: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?
|
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 {
|
||||||
authorId = sendAsPeer.id
|
if info.flags.contains(.messagesShouldHaveProfiles) {
|
||||||
|
authorId = sendAsPeer.id
|
||||||
|
} else {
|
||||||
|
authorId = peer.id
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
authorId = peer.id
|
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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user