MM-13421 Fix channel sidebar sometimes using old permissions (#2450)
This commit is contained in:
parent
901a59a01b
commit
317d26ed64
1 changed files with 3 additions and 3 deletions
|
|
@ -82,8 +82,8 @@ export default class List extends PureComponent {
|
|||
}
|
||||
}
|
||||
|
||||
getSectionConfigByType = (sectionType) => {
|
||||
const {canCreatePrivateChannels} = this.props;
|
||||
getSectionConfigByType = (props, sectionType) => {
|
||||
const {canCreatePrivateChannels} = props;
|
||||
|
||||
switch (sectionType) {
|
||||
case SidebarSectionTypes.UNREADS:
|
||||
|
|
@ -142,7 +142,7 @@ export default class List extends PureComponent {
|
|||
|
||||
return orderedChannelIds.map((s, i) => {
|
||||
return {
|
||||
...this.getSectionConfigByType(s.type),
|
||||
...this.getSectionConfigByType(props, s.type),
|
||||
data: s.items,
|
||||
topSeparator: i !== 0,
|
||||
bottomSeparator: s.items.length > 0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue