From e655e0a8826eb66e3f133cfe6ab912d275a55715 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 18 Jan 2023 14:28:12 +0200 Subject: [PATCH] Only send marker for backwards backfills on hungryserv --- mautrix_telegram/portal.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mautrix_telegram/portal.py b/mautrix_telegram/portal.py index 1f0251d6..67d61031 100644 --- a/mautrix_telegram/portal.py +++ b/mautrix_telegram/portal.py @@ -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,