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
|
|
|
|
|
2019-01-14 21:49:58 +00:00
|
|
|
import { combineReducers } from 'redux';
|
|
|
|
|
2021-06-17 17:15:10 +00:00
|
|
|
import { reducer as accounts } from './ducks/accounts';
|
2021-06-14 19:01:00 +00:00
|
|
|
import { reducer as app } from './ducks/app';
|
2021-03-10 20:36:58 +00:00
|
|
|
import { reducer as audioPlayer } from './ducks/audioPlayer';
|
2021-09-29 20:23:06 +00:00
|
|
|
import { reducer as audioRecorder } from './ducks/audioRecorder';
|
2021-11-02 23:01:13 +00:00
|
|
|
import { reducer as badges } from './ducks/badges';
|
2020-10-23 17:07:37 +00:00
|
|
|
import { reducer as calling } from './ducks/calling';
|
2023-08-09 00:53:06 +00:00
|
|
|
import { reducer as callHistory } from './ducks/callHistory';
|
2021-06-25 16:08:16 +00:00
|
|
|
import { reducer as composer } from './ducks/composer';
|
2020-10-23 17:07:37 +00:00
|
|
|
import { reducer as conversations } from './ducks/conversations';
|
2022-01-11 20:02:46 +00:00
|
|
|
import { reducer as crashReports } from './ducks/crashReports';
|
2020-10-23 17:07:37 +00:00
|
|
|
import { reducer as emojis } from './ducks/emojis';
|
|
|
|
import { reducer as expiration } from './ducks/expiration';
|
2021-05-28 16:15:17 +00:00
|
|
|
import { reducer as globalModals } from './ducks/globalModals';
|
2023-03-28 20:31:24 +00:00
|
|
|
import { reducer as inbox } from './ducks/inbox';
|
2024-09-04 02:56:13 +00:00
|
|
|
import { reducer as installer } from './ducks/installer';
|
2020-10-23 17:07:37 +00:00
|
|
|
import { reducer as items } from './ducks/items';
|
2022-12-10 02:02:22 +00:00
|
|
|
import { reducer as lightbox } from './ducks/lightbox';
|
2021-04-27 22:35:35 +00:00
|
|
|
import { reducer as linkPreviews } from './ducks/linkPreviews';
|
2022-12-20 17:50:23 +00:00
|
|
|
import { reducer as mediaGallery } from './ducks/mediaGallery';
|
2023-08-09 00:53:06 +00:00
|
|
|
import { reducer as nav } from './ducks/nav';
|
2020-10-23 17:07:37 +00:00
|
|
|
import { reducer as network } from './ducks/network';
|
2021-09-09 16:29:01 +00:00
|
|
|
import { reducer as preferredReactions } from './ducks/preferredReactions';
|
2020-10-23 17:07:37 +00:00
|
|
|
import { reducer as safetyNumber } from './ducks/safetyNumber';
|
|
|
|
import { reducer as search } from './ducks/search';
|
|
|
|
import { reducer as stickers } from './ducks/stickers';
|
2022-03-04 21:14:52 +00:00
|
|
|
import { reducer as stories } from './ducks/stories';
|
2022-07-01 00:52:03 +00:00
|
|
|
import { reducer as storyDistributionLists } from './ducks/storyDistributionLists';
|
2022-07-12 16:41:41 +00:00
|
|
|
import { reducer as toast } from './ducks/toast';
|
2020-10-23 17:07:37 +00:00
|
|
|
import { reducer as updates } from './ducks/updates';
|
|
|
|
import { reducer as user } from './ducks/user';
|
2022-10-18 17:12:02 +00:00
|
|
|
import { reducer as username } from './ducks/username';
|
2019-01-14 21:49:58 +00:00
|
|
|
|
2020-10-23 17:07:37 +00:00
|
|
|
export const reducer = combineReducers({
|
2021-06-17 17:15:10 +00:00
|
|
|
accounts,
|
2021-06-14 19:01:00 +00:00
|
|
|
app,
|
2021-03-10 20:36:58 +00:00
|
|
|
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,
|
2023-08-09 00:53:06 +00:00
|
|
|
callHistory,
|
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,
|
2020-02-12 21:30:58 +00:00
|
|
|
expiration,
|
2021-05-28 16:15:17 +00:00
|
|
|
globalModals,
|
2023-03-28 20:31:24 +00:00
|
|
|
inbox,
|
2024-09-04 02:56:13 +00:00
|
|
|
installer,
|
2019-05-16 22:32:11 +00:00
|
|
|
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,
|
2023-08-09 00:53:06 +00:00
|
|
|
nav,
|
2020-02-12 21:30:58 +00:00
|
|
|
network,
|
2021-09-09 16:29:01 +00:00
|
|
|
preferredReactions,
|
2020-06-26 00:08:58 +00:00
|
|
|
safetyNumber,
|
2019-05-16 22:32:11 +00:00
|
|
|
search,
|
|
|
|
stickers,
|
2022-03-04 21:14:52 +00:00
|
|
|
stories,
|
2022-07-01 00:52:03 +00:00
|
|
|
storyDistributionLists,
|
2022-07-12 16:41:41 +00:00
|
|
|
toast,
|
2020-02-12 21:30:58 +00:00
|
|
|
updates,
|
2019-01-14 21:49:58 +00:00
|
|
|
user,
|
2022-10-18 17:12:02 +00:00
|
|
|
username,
|
2020-10-23 17:07:37 +00:00
|
|
|
});
|
2019-01-14 21:49:58 +00:00
|
|
|
|
2020-10-23 17:07:37 +00:00
|
|
|
export type StateType = ReturnType<typeof reducer>;
|