fix wrong key for history reuse

This commit is contained in:
Matthias Alphart 2024-11-14 08:21:04 +01:00 committed by GitHub
parent ecc899b4fa
commit 0cdffeb6d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,7 +90,7 @@ class Telegrams:
telegram["payload"] = tuple(telegram["payload"]) # type: ignore[unreachable]
self.recent_telegrams.extend(telegrams)
self.last_ga_telegrams = {
t["source"]: t for t in telegrams if t["payload"] is not None
t["destination"]: t for t in telegrams if t["payload"] is not None
}
async def save_history(self) -> None: