From e685b0a8b73bcd2476984f639a5cff1867430d72 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 5 Jun 2020 08:11:40 -0400 Subject: [PATCH] Prefer using own account to fetch own profile --- src/backend/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/backend.py b/src/backend/backend.py index d0b1799c..06b12396 100644 --- a/src/backend/backend.py +++ b/src/backend/backend.py @@ -246,7 +246,7 @@ class Backend: if use_cache and user_id in self.profile_cache: return self.profile_cache[user_id] - client = await self.get_any_client() + client = self.clients.get(user_id) or await self.get_any_client() response = await client.get_profile(user_id) self.profile_cache[user_id] = response