Skip to content

Commit

Permalink
NotSubscribed types: Make stream prop explicitly inexact.
Browse files Browse the repository at this point in the history
An instance of zulip#3452. See discussion at
  zulip#4520 (comment).
  • Loading branch information
chrisbobbe authored and gnprice committed Jun 9, 2021
1 parent 40f7383 commit b21bf43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/chat/narrowsSelectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const getLastMessageId = (state: GlobalState, narrow: Narrow): number | v

// Prettier mishandles this Flow syntax.
// prettier-ignore
// TODO: clean up what this returns.
// TODO: clean up what this returns; possibly to just `Stream`
export const getStreamInNarrow: Selector<Subscription | {| ...Stream, in_home_view: boolean |}, Narrow> = createSelector(
(state, narrow) => narrow,
state => getSubscriptions(state),
Expand Down
2 changes: 1 addition & 1 deletion src/message/NotSubscribed.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import styles from '../styles';

type SelectorProps = $ReadOnly<{|
auth: Auth,
stream: { ...Stream },
stream: { ...Stream, ... },
|}>;

type Props = $ReadOnly<{|
Expand Down

0 comments on commit b21bf43

Please sign in to comment.