Revert "Switch to using typeahead for user search"

This reverts commit a3e11e3272.
This commit is contained in:
Zed
2023-08-23 19:31:40 +02:00
parent a3e11e3272
commit 88b005c9da
5 changed files with 11 additions and 15 deletions

View File

@@ -85,10 +85,3 @@ proc parseUsers*(json: string; after=""): Result[User] =
let raw = json.fromJson(seq[RawUser])
for user in raw:
result.content.add user.toUser
proc parseTypeahead*(json: string): Result[User] =
result = Result[User](beginning: true)
let raw = json.fromJson(Typeahead)
for user in raw.users:
result.content.add user.toUser

View File

@@ -42,6 +42,3 @@ type
Color* = object
red*, green*, blue*: int
Typeahead* = object
users*: seq[RawUser]