Initial history import support

This commit is contained in:
Ali
2021-01-20 00:10:53 +04:00
parent d5a25602ce
commit 8a02b588d8
79 changed files with 8315 additions and 4771 deletions

View File

@@ -7,14 +7,16 @@ struct IntermediateMessageForwardInfo {
let date: Int32
let authorSignature: String?
let psaType: String?
let flags: MessageForwardInfo.Flags
init(authorId: PeerId?, sourceId: PeerId?, sourceMessageId: MessageId?, date: Int32, authorSignature: String?, psaType: String?) {
init(authorId: PeerId?, sourceId: PeerId?, sourceMessageId: MessageId?, date: Int32, authorSignature: String?, psaType: String?, flags: MessageForwardInfo.Flags) {
self.authorId = authorId
self.sourceId = sourceId
self.sourceMessageId = sourceMessageId
self.date = date
self.authorSignature = authorSignature
self.psaType = psaType
self.flags = flags
}
init(_ storeInfo: StoreMessageForwardInfo) {
@@ -24,6 +26,7 @@ struct IntermediateMessageForwardInfo {
self.date = storeInfo.date
self.authorSignature = storeInfo.authorSignature
self.psaType = storeInfo.psaType
self.flags = storeInfo.flags
}
}