Only send marker for backwards backfills on hungryserv

This commit is contained in:
Tulir Asokan
2023-01-18 14:28:12 +02:00
parent db88fbb694
commit e655e0a882
+5 -2
View File
@@ -2804,8 +2804,11 @@ class Portal(DBPortal, BasePortal):
elif not insertion_id:
insertion_id = self.base_insertion_id
await self.save()
# TODO this should probably check actual event count instead of message count
if event_count > 0 and self.backfill_msc2716:
if (
event_count > 0
and self.backfill_msc2716
and (not forward or not self.bridge.homeserver_software.is_hungry)
):
await self.main_intent.send_state_event(
self.mxid,
StateMarker,