Skip to content

Commit

Permalink
fix auto enable extension and emoji selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Flemmli97 committed Aug 17, 2023
1 parent 311e557 commit b832929
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion common/src/state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =====
Expand Down

0 comments on commit b832929

Please sign in to comment.