aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
Diffstat (limited to 'cache')
-rw-r--r--cache/filter.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/cache/filter.go b/cache/filter.go
index 7b1a6054..b26e7ae1 100644
--- a/cache/filter.go
+++ b/cache/filter.go
@@ -66,12 +66,12 @@ func ActorFilter(query string) Filter {
panic("missing identity in the cache")
}
- if strings.Contains(strings.ToLower(identityExcerpt.Name), query) ||
- query == identityExcerpt.Id || query == strings.ToLower(identityExcerpt.Login) {
+ if query == identityExcerpt.Id ||
+ strings.Contains(strings.ToLower(identityExcerpt.Name), query) ||
+ query == strings.ToLower(identityExcerpt.Login) {
return true
}
}
-
return false
}
}
@@ -87,12 +87,12 @@ func ParticipantFilter(query string) Filter {
panic("missing identity in the cache")
}
- if strings.Contains(strings.ToLower(identityExcerpt.Name), query) ||
- query == identityExcerpt.Id || query == strings.ToLower(identityExcerpt.Login) {
+ if query == identityExcerpt.Id ||
+ strings.Contains(strings.ToLower(identityExcerpt.Name), query) ||
+ query == strings.ToLower(identityExcerpt.Login) {
return true
}
}
-
return false
}
}