Fix media fetch cancellation

This commit is contained in:
Ali
2021-10-26 00:34:03 +04:00
parent 620e96731b
commit c59ca0a993
6 changed files with 65 additions and 16 deletions

View File

@@ -11,6 +11,15 @@ public struct MessageReference: PostboxCoding, Hashable, Equatable {
return peer
}
}
public var id: MessageId? {
switch content {
case .none:
return nil
case let .message(_, id, _, _, _):
return id
}
}
public var timestamp: Int32? {
switch content {