mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Adjust archive
This commit is contained in:
@@ -834,13 +834,8 @@ func chatListNodeEntriesForView(view: EngineChatList, state: ChatListNodeState,
|
||||
for groupReference in view.groupItems {
|
||||
let messageIndex = EngineMessage.Index(id: EngineMessage.Id(peerId: EnginePeer.Id(0), namespace: 0, id: 0), timestamp: 1)
|
||||
var mappedStoryState: ChatListNodeState.StoryState?
|
||||
if let hasUnseenArchiveStories = state.hasUnseenArchiveStories {
|
||||
mappedStoryState = ChatListNodeState.StoryState(
|
||||
stats: EngineChatList.StoryStats(
|
||||
totalCount: 1, unseenCount: hasUnseenArchiveStories ? 1 : 0
|
||||
),
|
||||
hasUnseenCloseFriends: false
|
||||
)
|
||||
if let archiveStoryState = state.archiveStoryState {
|
||||
mappedStoryState = archiveStoryState
|
||||
}
|
||||
result.append(.GroupReferenceEntry(ChatListNodeEntry.GroupReferenceEntryData(
|
||||
index: .chatList(EngineChatList.Item.Index.ChatList(pinningIndex: pinningIndex, messageIndex: messageIndex)),
|
||||
|
||||
Reference in New Issue
Block a user