mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Refactoring
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Foundation
|
||||
|
||||
public struct MessageId: Hashable, Comparable, CustomStringConvertible, PostboxCoding {
|
||||
public struct MessageId: Hashable, Comparable, CustomStringConvertible, PostboxCoding, Codable {
|
||||
public typealias Namespace = Int32
|
||||
public typealias Id = Int32
|
||||
|
||||
@@ -94,7 +94,7 @@ public struct MessageId: Hashable, Comparable, CustomStringConvertible, PostboxC
|
||||
}
|
||||
}
|
||||
|
||||
public struct MessageIndex: Comparable, Hashable {
|
||||
public struct MessageIndex: Codable, Comparable, Hashable {
|
||||
public let id: MessageId
|
||||
public let timestamp: Int32
|
||||
|
||||
@@ -514,7 +514,7 @@ public struct MessageForwardInfo: Equatable {
|
||||
}
|
||||
}
|
||||
|
||||
public protocol MessageAttribute: class, PostboxCoding {
|
||||
public protocol MessageAttribute: AnyObject, PostboxCoding {
|
||||
var associatedPeerIds: [PeerId] { get }
|
||||
var associatedMessageIds: [MessageId] { get }
|
||||
var automaticTimestampBasedAttribute: (UInt16, Int32)? { get }
|
||||
|
||||
Reference in New Issue
Block a user