Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Timeline: repair oldest/newest metrics if we fetch nothing
- Loading branch information
1 parent
56ae4a4
commit 6832b8a
Showing
47 changed files
with
579 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright 2019-2020 Signal Messenger, LLC | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
import { createSelector } from 'reselect'; | ||
|
||
import { StateType } from '../reducer'; | ||
import { ItemsStateType } from '../ducks/items'; | ||
|
||
export const getItems = (state: StateType): ItemsStateType => state.items; | ||
|
||
export const getUserAgent = createSelector( | ||
getItems, | ||
(state: ItemsStateType): string => state.userAgent as string | ||
); | ||
|
||
export const getPinnedConversationIds = createSelector( | ||
getItems, | ||
(state: ItemsStateType): Array<string> => | ||
(state.pinnedConversationIds || []) as Array<string> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.