1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-04 11:51:45 +03:00

refactored effects dir and changed effects exported name

This commit is contained in:
nurjinn jafar
2020-11-27 14:54:21 +01:00
parent ede67684e4
commit 6ce5d3b044
9 changed files with 110 additions and 48 deletions

View File

@@ -46,7 +46,7 @@ import { EffectiveMembership, getEffectiveMembership, leaveRoomBehaviour } from
import SdkConfig from "./SdkConfig";
import SettingsStore from "./settings/SettingsStore";
import {UIFeature} from "./settings/UIFeature";
import effects from "./components/views/elements/effects"
import {CHAT_EFFECTS} from "./effects"
import CallHandler from "./CallHandler";
// XXX: workaround for https://github.com/microsoft/TypeScript/issues/31816
@@ -1097,7 +1097,7 @@ export const Commands = [
hideCompletionAfterSpace: true,
}),
...effects.map((effect) => {
...CHAT_EFFECTS.map((effect) => {
return new Command({
command: effect.command,
description: effect.description(),