mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-17 03:40:18 +00:00
Merge branch 'macos-9.5-release'
# Conflicts:
This commit is contained in:
commit
604f10f697
@ -239,7 +239,7 @@ final class NetworkFrameworkTcpConnectionInterface: NSObject, MTTcpConnectionInt
|
|||||||
|
|
||||||
if data.count != 0 && data.count <= currentReadRequest.request.length - currentReadRequest.readyLength {
|
if data.count != 0 && data.count <= currentReadRequest.request.length - currentReadRequest.readyLength {
|
||||||
currentReadRequest.data.withUnsafeMutableBytes { currentBuffer in
|
currentReadRequest.data.withUnsafeMutableBytes { currentBuffer in
|
||||||
guard let currentBytes = currentBuffer.assumingMemoryBound(to: UInt8.self).baseAddress else {
|
guard let currentBytes = currentBuffer.baseAddress?.assumingMemoryBound(to: UInt8.self) else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
data.copyBytes(to: currentBytes.advanced(by: currentReadRequest.readyLength), count: data.count)
|
data.copyBytes(to: currentBytes.advanced(by: currentReadRequest.readyLength), count: data.count)
|
||||||
|
|||||||
@ -225,7 +225,7 @@ func locallyRenderedMessage(message: StoreMessage, peers: [PeerId: Peer], associ
|
|||||||
|
|
||||||
public extension Message {
|
public extension Message {
|
||||||
func effectivelyIncoming(_ accountPeerId: PeerId) -> Bool {
|
func effectivelyIncoming(_ accountPeerId: PeerId) -> Bool {
|
||||||
if self.id.peerId == accountPeerId {
|
if self.author?.id == accountPeerId, self.id.peerId != accountPeerId {
|
||||||
if self.forwardInfo != nil {
|
if self.forwardInfo != nil {
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user