mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Remove old protocol compatibility layers
This commit is contained in:
@@ -198,14 +198,10 @@ export class ApiClient {
|
||||
options: {
|
||||
beforeSeq?: number | null
|
||||
beforeAt?: number | null
|
||||
byPosition?: boolean
|
||||
limit?: number
|
||||
}
|
||||
): Promise<MessagesResponse> {
|
||||
const params = new URLSearchParams()
|
||||
if (options.byPosition || options.beforeAt !== undefined && options.beforeAt !== null) {
|
||||
params.set('byPosition', '1')
|
||||
}
|
||||
if (options.beforeAt !== undefined && options.beforeAt !== null) {
|
||||
params.set('beforeAt', `${options.beforeAt}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user