Skip to content

Commit 2ea6592

Browse files
authored
remeasure inbox (keybase#14070)
* WIP * WIP
1 parent c4620b3 commit 2ea6592

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎shared/chat/inbox/index.desktop.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ class Inbox extends PureComponent<Props, State> {
3838
listRowsResized = true
3939
}
4040

41+
// list changed, see if the divider changed
42+
if (!listRowsResized && this.props.rows.length !== prevProps.rows.length) {
43+
const idx = prevProps.rows.findIndex(r => r.type === 'divider')
44+
const row = this.props.rows[idx]
45+
listRowsResized = !row || row.type !== 'divider'
46+
}
47+
4148
if (listRowsResized) {
4249
this._list && this._list.resetAfterIndex(0)
4350
}

0 commit comments

Comments
 (0)