Remove old protocol compatibility layers

This commit is contained in:
weishu
2026-05-20 17:45:28 +08:00
parent 9324598cd5
commit 6759cf4657
30 changed files with 335 additions and 253 deletions
-4
View File
@@ -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}`)
}