1
0

During AS catch-up, send empty OTK counts and fallback keys for now

This commit is contained in:
Olivier Wilkinson (reivilibre)
2021-12-01 15:08:02 +00:00
parent 307afbcf57
commit 474ff3b9fa

View File

@@ -345,12 +345,16 @@ class ApplicationServiceTransactionWorkerStore(
events = await self.get_events_as_list(event_ids)
# TODO: should we recalculate one-time key counts and unused fallback
# key counts here?
return AppServiceTransaction(
service=service,
id=entry["txn_id"],
events=events,
ephemeral=[],
to_device_messages=[],
one_time_key_counts={},
unused_fallback_keys={},
)
def _get_last_txn(self, txn, service_id: Optional[str]) -> int: