fix: /context for element android. start and end must be set even with limit=0

This commit is contained in:
Timo Kösters 2023-06-26 08:33:31 +02:00
parent 15cc801840
commit 49a0f3a60d
No known key found for this signature in database
GPG key ID: 0B25E636FBA7E4CB
4 changed files with 17 additions and 13 deletions

View file

@ -1,18 +1,15 @@
mod data;
use std::sync::Arc;
pub use data::Data;
use ruma::{
api::client::{error::ErrorKind, threads::get_threads::v1::IncludeThreads},
events::{relation::BundledThread, StateEventType},
uint, CanonicalJsonValue, EventId, OwnedUserId, RoomId, UserId,
events::relation::BundledThread,
uint, CanonicalJsonValue, EventId, RoomId, UserId,
};
use serde::Deserialize;
use serde_json::json;
use crate::{services, utils, Error, PduEvent, Result};
use super::timeline::PduCount;
use crate::{services, Error, PduEvent, Result};
pub struct Service {
pub db: &'static dyn Data,

View file

@ -24,7 +24,7 @@ use ruma::{
GlobalAccountDataEventType, StateEventType, TimelineEventType,
},
push::{Action, Ruleset, Tweak},
serde::{Base64, JsonObject},
serde::Base64,
state_res,
state_res::{Event, RoomVersion},
uint, user_id, CanonicalJsonObject, CanonicalJsonValue, EventId, OwnedEventId, OwnedRoomId,