mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
fix: Correctly send limited timelines again
This commit is contained in:
1 parent
3491f653a5
commit
72bf8e5927
4 files changed
+47
-29
No files matched your search
@@ -125,7 +125,7 @@ pub(super) async fn load_joined_room(
|
||||
let is_initial_sync = since_shortstatehash.is_none();
|
||||
|
||||
let timeline_start_shortstatehash = async {
|
||||
if let Some((_, pdu)) = timeline_pdus.first() {
|
||||
if let Some((_, pdu)) = timeline_pdus.front() {
|
||||
if let Ok(shortstatehash) = services
|
||||
.rooms
|
||||
.state_accessor
|
||||
@@ -349,7 +349,7 @@ pub(super) async fn load_joined_room(
|
||||
.flatten();
|
||||
|
||||
let prev_batch = timeline_pdus
|
||||
.first()
|
||||
.front()
|
||||
.map(at!(0))
|
||||
.or_else(|| joined_sender_member.is_some().and(since).map(Into::into));
|
||||
|
||||
|
||||
Reference in new issue
Block a user