From 5d7929f6f7bd1dbdb386628559a40a25760b2bab Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Sat, 5 Feb 2022 22:48:32 +0000 Subject: [PATCH 1/2] Use m.login.application_service This is now part of the Matrix spec, we don't need to use the unstable prefix. Suggest the next version of this library is breaking to support this. --- src/components/encryption.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/encryption.ts b/src/components/encryption.ts index 7b9372fd..a1fded05 100644 --- a/src/components/encryption.ts +++ b/src/components/encryption.ts @@ -8,7 +8,7 @@ import LRU from "@alloc/quick-lru" const log = Logging.get("EncryptedEventBroker"); -export const APPSERVICE_LOGIN_TYPE = "uk.half-shot.msc2778.login.application_service"; +export const APPSERVICE_LOGIN_TYPE = "m.login.application_service"; const EVENT_CACHE_FOR_MS = 5 * 60000; // 5 minutes interface PantalaimonWeakEvent extends WeakEvent { From 95708b1dfc3e2419450816c75ab76d3681bfaf9d Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Sat, 5 Feb 2022 22:50:38 +0000 Subject: [PATCH 2/2] Create 389.misc --- changelog.d/389.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/389.misc diff --git a/changelog.d/389.misc b/changelog.d/389.misc new file mode 100644 index 00000000..b6b6077f --- /dev/null +++ b/changelog.d/389.misc @@ -0,0 +1 @@ +Logging in as an appservice user (for encryption support) now uses `m.login.application_service` rather than the unstable prefix. This may break on homeservers that are not up to date with Matrix v1.2.