Commit 64f80dec authored by George Goldberg's avatar George Goldberg Committed by Corey Hulen
Browse files

PLT-6057: Fix empty search results with in/from. (#5892)

When search query was empty but in/from was set, search results didn't
include posts containing hashtags.
parent 8dde651d
......@@ -165,7 +165,7 @@ func ParseSearchParams(text string) []*SearchParams {
if len(plainTerms) == 0 && len(hashtagTerms) == 0 && (len(inChannels) != 0 || len(fromUsers) != 0) {
paramsList = append(paramsList, &SearchParams{
Terms: "",
IsHashtag: true,
IsHashtag: false,
InChannels: inChannels,
FromUsers: fromUsers,
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment