Skip to content

Commit

Permalink
always refresh inbox if we havent loaded it (#20911)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaxim committed Nov 11, 2019
1 parent 4c5942c commit 0de102f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shared/chat/inbox/container/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,12 @@ const Connected = Container.namedConnect(
inboxNumSmallRows = 5
}
const neverLoaded = !inboxHasLoaded
const _canRefreshOnMount = neverLoaded && !Constants.anyChatWaitingKeys(state)
const allowShowFloatingButton = inboxLayout
? (inboxLayout.smallTeams || []).length > inboxNumSmallRows && !!(inboxLayout.bigTeams || []).length
: false
return {
_badgeMap: state.chat2.badgeMap,
_canRefreshOnMount,
_canRefreshOnMount: neverLoaded,
_hasLoadedTrusted: state.chat2.trustedInboxHasLoaded,
_inboxLayout: inboxLayout,
_selectedConversationIDKey: state.chat2.selectedConversation,
Expand Down

0 comments on commit 0de102f

Please sign in to comment.