signal-desktop/ts/state/actions.ts

94 lines
2.6 KiB
TypeScript
Raw Normal View History

2023-01-03 19:55:46 +00:00
// Copyright 2019 Signal Messenger, LLC
2020-10-30 20:34:04 +00:00
// SPDX-License-Identifier: AGPL-3.0-only
import { actions as accounts } from './ducks/accounts';
2021-06-14 19:01:00 +00:00
import { actions as app } from './ducks/app';
import { actions as audioPlayer } from './ducks/audioPlayer';
2021-09-29 20:23:06 +00:00
import { actions as audioRecorder } from './ducks/audioRecorder';
2021-11-02 23:01:13 +00:00
import { actions as badges } from './ducks/badges';
2023-08-09 00:53:06 +00:00
import { actions as callHistory } from './ducks/callHistory';
2020-06-04 18:16:19 +00:00
import { actions as calling } from './ducks/calling';
2021-06-25 16:08:16 +00:00
import { actions as composer } from './ducks/composer';
2019-01-14 21:49:58 +00:00
import { actions as conversations } from './ducks/conversations';
2022-01-11 20:02:46 +00:00
import { actions as crashReports } from './ducks/crashReports';
2019-05-24 23:58:27 +00:00
import { actions as emojis } from './ducks/emojis';
import { actions as expiration } from './ducks/expiration';
2021-05-28 16:15:17 +00:00
import { actions as globalModals } from './ducks/globalModals';
2023-03-28 20:31:24 +00:00
import { actions as inbox } from './ducks/inbox';
import { actions as items } from './ducks/items';
2022-12-10 02:02:22 +00:00
import { actions as lightbox } from './ducks/lightbox';
2021-04-27 22:35:35 +00:00
import { actions as linkPreviews } from './ducks/linkPreviews';
2022-12-20 17:50:23 +00:00
import { actions as mediaGallery } from './ducks/mediaGallery';
import { actions as network } from './ducks/network';
import { actions as safetyNumber } from './ducks/safetyNumber';
import { actions as search } from './ducks/search';
import { actions as stickers } from './ducks/stickers';
2022-03-04 21:14:52 +00:00
import { actions as stories } from './ducks/stories';
2022-07-01 00:52:03 +00:00
import { actions as storyDistributionLists } from './ducks/storyDistributionLists';
import { actions as toast } from './ducks/toast';
import { actions as updates } from './ducks/updates';
2019-01-14 21:49:58 +00:00
import { actions as user } from './ducks/user';
2022-10-18 17:12:02 +00:00
import { actions as username } from './ducks/username';
import type { ReduxActions } from './types';
export const actionCreators: ReduxActions = {
accounts,
app,
audioPlayer,
2021-09-29 20:23:06 +00:00
audioRecorder,
2021-11-02 23:01:13 +00:00
badges,
2023-08-09 00:53:06 +00:00
callHistory,
calling,
2021-06-25 16:08:16 +00:00
composer,
conversations,
2022-01-11 20:02:46 +00:00
crashReports,
emojis,
expiration,
globalModals,
2023-03-28 20:31:24 +00:00
inbox,
items,
2022-12-10 02:02:22 +00:00
lightbox,
linkPreviews,
2022-12-20 17:50:23 +00:00
mediaGallery,
network,
safetyNumber,
search,
stickers,
2022-03-04 21:14:52 +00:00
stories,
2022-07-01 00:52:03 +00:00
storyDistributionLists,
toast,
updates,
user,
2022-10-18 17:12:02 +00:00
username,
};
2019-01-14 21:49:58 +00:00
export const mapDispatchToProps = {
...accounts,
2021-06-14 19:01:00 +00:00
...app,
...audioPlayer,
2021-09-29 20:23:06 +00:00
...audioRecorder,
2021-11-02 23:01:13 +00:00
...badges,
2020-06-04 18:16:19 +00:00
...calling,
2021-06-25 16:08:16 +00:00
...composer,
2019-01-14 21:49:58 +00:00
...conversations,
2022-01-11 20:02:46 +00:00
...crashReports,
2019-05-24 23:58:27 +00:00
...emojis,
...expiration,
2021-05-28 16:15:17 +00:00
...globalModals,
2023-03-28 20:31:24 +00:00
...inbox,
...items,
2022-12-10 02:02:22 +00:00
...lightbox,
2021-04-27 22:35:35 +00:00
...linkPreviews,
2022-12-20 17:50:23 +00:00
...mediaGallery,
...network,
...safetyNumber,
...search,
...stickers,
2022-03-04 21:14:52 +00:00
...stories,
2022-07-01 00:52:03 +00:00
...storyDistributionLists,
...toast,
...updates,
2019-01-14 21:49:58 +00:00
...user,
2022-10-18 17:12:02 +00:00
...username,
2019-01-14 21:49:58 +00:00
};