mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-12 15:33:58 +02:00
fix: Nuke src/api/client/utils.rs
This commit is contained in:
parent
90fd92977e
commit
1e541875ad
5 changed files with 9 additions and 19 deletions
|
@ -9,7 +9,7 @@ use conduwuit::{
|
|||
use futures::StreamExt;
|
||||
use ruma::{api::client::threads::get_threads, uint};
|
||||
|
||||
use crate::{Ruma, client::utils::pagination_token_to_count};
|
||||
use crate::Ruma;
|
||||
|
||||
/// # `GET /_matrix/client/r0/rooms/{roomId}/threads`
|
||||
pub(crate) async fn get_threads_route(
|
||||
|
@ -27,7 +27,7 @@ pub(crate) async fn get_threads_route(
|
|||
let from: PduCount = body
|
||||
.from
|
||||
.as_deref()
|
||||
.map(pagination_token_to_count)
|
||||
.map(str::parse)
|
||||
.transpose()?
|
||||
.unwrap_or_else(PduCount::max);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue