From ab87ab821159e4a0c8d2c55aa8dfcc0b1200a341 Mon Sep 17 00:00:00 2001 From: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Date: Fri, 11 Dec 2020 12:26:56 +0000 Subject: [PATCH] Add 'max_connections' as an understood config field to gcmpushkin (#157) --- changelog.d/157.bugfix | 1 + sygnal/gcmpushkin.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/157.bugfix diff --git a/changelog.d/157.bugfix b/changelog.d/157.bugfix new file mode 100644 index 00000000..df634230 --- /dev/null +++ b/changelog.d/157.bugfix @@ -0,0 +1 @@ +Fix erroneous warning log line when setting the `max_connections` option in a GCM app config. diff --git a/sygnal/gcmpushkin.py b/sygnal/gcmpushkin.py index 81473092..a8748031 100644 --- a/sygnal/gcmpushkin.py +++ b/sygnal/gcmpushkin.py @@ -97,6 +97,7 @@ class GcmPushkin(ConcurrencyLimitedPushkin): "type", "api_key", "fcm_options", + "max_connections", } | ConcurrencyLimitedPushkin.UNDERSTOOD_CONFIG_FIELDS def __init__(self, name, sygnal, config, canonical_reg_id_store):