[x] Only allow letters, numbers, dots, and underscores in scalar Username.
[x] Send back an update when a user deletes their account. This is useful for when the other user in a private chat needs to have their chat with them closed.
[x] Return a Boolean! from Mutation.unblockUser instead. It'll indicate whether the specified user was blocked/unblocked.
[x] Replace Mutation.createContacts with Mutation.createContact.
[x] Replace Mutation.deleteContacts with Mutation.deleteContact.
[x] Use GFM instead of CommonMark.
[x] Paginate Query.readStars.
[x] Paginate Query.searchMessages.
[x] Paginate Query.readChats.
[x] Paginate Query.searchChats.
[x] Paginate Query.searchPublicChats.
[x] Perhaps flatten type MessageDateTimes by deleting it, and keeping the fields directly in the parent types.
[x] Many tests have function bodies instead of expressions even though it could just be a single line returning Unit. Make such tests concise.
chatId
toid
intype UnstarredChat
.Query.searchBlockedUsers
.scalar Username
.Boolean!
fromMutation.unblockUser
instead. It'll indicate whether the specified user was blocked/unblocked.Mutation.createContacts
withMutation.createContact
.Mutation.deleteContacts
withMutation.deleteContact
.Query.readStars
.Query.searchMessages
.Query.readChats
.Query.searchChats
.Query.searchPublicChats
.type MessageDateTimes
by deleting it, and keeping the fields directly in the parenttype
s.Unit
. Make such tests concise.