Hide more settings

This commit is contained in:
Isaac
2024-01-14 22:29:24 +04:00
parent 798da71ffe
commit 3be816e615
5 changed files with 9 additions and 8 deletions

View File

@@ -35,7 +35,7 @@ final class ChatSearchNavigationContentNode: NavigationBarContentNode {
let placeholderText: String
switch chatLocation {
case .peer, .replyThread, .feed:
if chatLocation.peerId == context.account.peerId {
if chatLocation.peerId == context.account.peerId, !"".isEmpty {
placeholderText = strings.Chat_SearchTagsPlaceholder
} else {
placeholderText = strings.Conversation_SearchPlaceholder
@@ -113,7 +113,7 @@ final class ChatSearchNavigationContentNode: NavigationBarContentNode {
case .peer, .replyThread, .feed:
if presentationInterfaceState.historyFilter != nil {
placeholderText = self.strings.Common_Search
} else if self.chatLocation.peerId == self.context.account.peerId {
} else if self.chatLocation.peerId == self.context.account.peerId, !"".isEmpty {
placeholderText = self.strings.Chat_SearchTagsPlaceholder
} else {
placeholderText = self.strings.Conversation_SearchPlaceholder