Universal Disappearing Messages
This commit is contained in:
parent
c63871d71b
commit
19f8042cd3
50 changed files with 1224 additions and 191 deletions
|
@ -3,6 +3,8 @@
|
|||
|
||||
import { createSelector } from 'reselect';
|
||||
|
||||
import { ITEM_NAME as UNIVERSAL_EXPIRE_TIMER_ITEM } from '../../util/universalExpireTimer';
|
||||
|
||||
import { StateType } from '../reducer';
|
||||
import { ItemsStateType } from '../ducks/items';
|
||||
|
||||
|
@ -18,3 +20,8 @@ export const getPinnedConversationIds = createSelector(
|
|||
(state: ItemsStateType): Array<string> =>
|
||||
(state.pinnedConversationIds || []) as Array<string>
|
||||
);
|
||||
|
||||
export const getUniversalExpireTimer = createSelector(
|
||||
getItems,
|
||||
(state: ItemsStateType): number => state[UNIVERSAL_EXPIRE_TIMER_ITEM] || 0
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue