From b832929bd4137d0f390cf5ccef06c4342203c75b Mon Sep 17 00:00:00 2001 From: Flemmli97 Date: Thu, 17 Aug 2023 14:26:47 +0200 Subject: [PATCH] fix auto enable extension and emoji selector --- common/src/state/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/src/state/mod.rs b/common/src/state/mod.rs index d073a63eae5..400bf4d7c27 100644 --- a/common/src/state/mod.rs +++ b/common/src/state/mod.rs @@ -160,7 +160,12 @@ impl State { } Action::RegisterExtensions(extensions) => { for (name, ext) in extensions { - self.ui.extensions.insert(name, ext); + self.ui.extensions.insert(name.clone(), ext); + if self.configuration.extensions.enable_automatically + || name.eq("emoji_selector") + { + self.ui.extensions.enable(name); + } } } // ===== Notifications =====