mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[WIP] Saved messages
This commit is contained in:
@@ -138,12 +138,3 @@ public class ReplyStoryAttribute: MessageAttribute {
|
||||
encoder.encode(self.storyId, forKey: "i")
|
||||
}
|
||||
}
|
||||
|
||||
public extension Message {
|
||||
var effectiveReplyThreadMessageId: MessageId? {
|
||||
if let threadId = self.threadId {
|
||||
return makeThreadIdMessageId(peerId: self.id.peerId, threadId: threadId)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,6 +190,13 @@ public let telegramPostboxSeedConfiguration: SeedConfiguration = {
|
||||
}
|
||||
}
|
||||
return false
|
||||
},
|
||||
automaticThreadIndexInfo: { peerId, _ in
|
||||
if peerId.namespace == Namespaces.Peer.CloudUser {
|
||||
return StoredMessageHistoryThreadInfo(data: CodableEntry(data: Data()), summary: StoredMessageHistoryThreadInfo.Summary(totalUnreadCount: 0, mutedUntil: nil))
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
)
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user