Migrate Spam to new Plugin structure

This commit is contained in:
Dark 2020-07-26 16:05:49 +02:00
parent 140ba84544
commit 4f831f6bf6
14 changed files with 622 additions and 0 deletions

View file

@ -0,0 +1,7 @@
import { RecentActionType } from "../types";
export function clearRecentUserActions(pluginData, type: RecentActionType, userId: string, actionGroupId: string) {
pluginData.state.recentActions = pluginData.state.recentActions.filter(action => {
return action.type !== type || action.userId !== userId || action.actionGroupId !== actionGroupId;
});
}