From f8e3e7ab4c369c8d0b5b7daf366163eda5cedbc9 Mon Sep 17 00:00:00 2001 From: "Nyeki.py" <84998222+Nekidev@users.noreply.github.com> Date: Mon, 21 Oct 2024 14:09:42 -0300 Subject: [PATCH] fix(bot): :bug: `p.history` not responding when a call's first message hadn't been propagated. --- payphone/cogs/users/cog.py | 1 + 1 file changed, 1 insertion(+) diff --git a/payphone/cogs/users/cog.py b/payphone/cogs/users/cog.py index 8140fe9..337845c 100644 --- a/payphone/cogs/users/cog.py +++ b/payphone/cogs/users/cog.py @@ -303,6 +303,7 @@ class Users(base.Cog): min_ids = await ( models.Message.filter(call_id__in=call_ids) + .exclude(propagation_id=None) .annotate(min_id=functions.Min("id")) .group_by("call_id") .values_list("min_id", flat=True)