mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Cherry-pick various improvements
This commit is contained in:
@@ -411,7 +411,7 @@ private func forumGeneralRevealOptions(strings: PresentationStrings, theme: Pres
|
||||
if canOpenClose && !hiddenByDefault {
|
||||
if !isEditing {
|
||||
if !isClosed {
|
||||
// options.append(ItemListRevealOption(key: RevealOptionKey.close.rawValue, title: strings.ChatList_CloseAction, icon: closeIcon, color: theme.list.itemDisclosureActions.inactive.fillColor, textColor: theme.list.itemDisclosureActions.inactive.foregroundColor))
|
||||
|
||||
} else {
|
||||
options.append(ItemListRevealOption(key: RevealOptionKey.open.rawValue, title: strings.ChatList_StartAction, icon: startIcon, color: theme.list.itemDisclosureActions.constructive.fillColor, textColor: theme.list.itemDisclosureActions.constructive.foregroundColor))
|
||||
}
|
||||
@@ -2533,8 +2533,8 @@ class ChatListItemNode: ItemListRevealOptionsItemNode {
|
||||
}
|
||||
strongSelf.currentOnline = online
|
||||
|
||||
if let currentHiddenOffset = currentItem?.hiddenOffset, item.hiddenOffset, currentHiddenOffset != item.hiddenOffset {
|
||||
strongSelf.supernode?.insertSubnode(strongSelf, at: 0)
|
||||
if item.hiddenOffset {
|
||||
strongSelf.layer.zPosition = -1.0
|
||||
}
|
||||
|
||||
if case .groupReference = item.content {
|
||||
|
||||
Reference in New Issue
Block a user