Various fixes

This commit is contained in:
Ilya Laktyushin
2022-11-26 16:16:37 +04:00
parent 8c006150f8
commit 58f9896a10
74 changed files with 1185 additions and 679 deletions

View File

@@ -422,7 +422,7 @@ func chatListNodeEntriesForView(_ view: EngineChatList, state: ChatListNodeState
isContact: entry.isContact,
forumTopicData: entry.forumTopicData,
topForumTopicItems: entry.topForumTopicItems,
revealed: threadId == 1 && state.hiddenItemShouldBeTemporaryRevealed
revealed: threadId == 1 && (state.hiddenItemShouldBeTemporaryRevealed || state.editing)
))
}
if !view.hasLater {
@@ -516,7 +516,7 @@ func chatListNodeEntriesForView(_ view: EngineChatList, state: ChatListNodeState
default:
break
}
result.append(.PeerEntry(
index: .chatList(EngineChatList.Item.Index.ChatList(pinningIndex: pinningIndex, messageIndex: index.messageIndex)),
presentationData: state.presentationData,
@@ -538,7 +538,7 @@ func chatListNodeEntriesForView(_ view: EngineChatList, state: ChatListNodeState
isContact: item.item.isContact,
forumTopicData: item.item.forumTopicData,
topForumTopicItems: item.item.topForumTopicItems,
revealed: threadId == 1 && state.hiddenItemShouldBeTemporaryRevealed
revealed: threadId == 1 && (state.hiddenItemShouldBeTemporaryRevealed || state.editing)
))
if pinningIndex != 0 {
pinningIndex -= 1