mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Hashtag search improvements
This commit is contained in:
@@ -130,10 +130,10 @@ private func updatedContextQueryResultStateForQuery(context: AccountContext, cha
|
||||
case .hashtag:
|
||||
break
|
||||
default:
|
||||
signal = .single({ _ in return .hashtags([]) })
|
||||
signal = .single({ _ in return .hashtags([], query) })
|
||||
}
|
||||
} else {
|
||||
signal = .single({ _ in return .hashtags([]) })
|
||||
signal = .single({ _ in return .hashtags([], query) })
|
||||
}
|
||||
|
||||
let hashtags: Signal<(ChatPresentationInputQueryResult?) -> ChatPresentationInputQueryResult?, ChatContextQueryError> = context.engine.messages.recentlyUsedHashtags()
|
||||
@@ -145,7 +145,7 @@ private func updatedContextQueryResultStateForQuery(context: AccountContext, cha
|
||||
result.append(hashtag)
|
||||
}
|
||||
}
|
||||
return { _ in return .hashtags(result) }
|
||||
return { _ in return .hashtags(result, query) }
|
||||
}
|
||||
|> castError(ChatContextQueryError.self)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user