From cc0cab32f117580ed4aac9b0ae7e82ae95951129 Mon Sep 17 00:00:00 2001 From: Mathieu Velten Date: Tue, 14 May 2024 16:21:40 +0200 Subject: [PATCH] vv --- sygnal/gcmpushkin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sygnal/gcmpushkin.py b/sygnal/gcmpushkin.py index 4b6b7b7b..fd87c02a 100644 --- a/sygnal/gcmpushkin.py +++ b/sygnal/gcmpushkin.py @@ -551,7 +551,7 @@ async def _dispatch_notification_unlimited( if self.api_version == APIVersion.Legacy: headers["Authorization"] = ["key=%s" % (self.api_key,)] elif self.api_version is APIVersion.V1: - headers["Authorization"] = ["Bearer %s" % (self._get_access_token(),)] + headers["Authorization"] = ["Bearer %s" % (await self._get_access_token(),)] body = self.base_request_body.copy() body["data"] = data