Middle Column: Fix message list scroll sometimes being frozen
This commit is contained in:
parent
b73c61889c
commit
e7ce375214
@ -659,7 +659,7 @@ export default memo(withGlobal<OwnProps>(
|
|||||||
messageLanguageModal,
|
messageLanguageModal,
|
||||||
} = selectTabState(global);
|
} = selectTabState(global);
|
||||||
const currentMessageList = selectCurrentMessageList(global);
|
const currentMessageList = selectCurrentMessageList(global);
|
||||||
const { chats: { listIds }, leftColumnWidth, lastSyncTime } = global;
|
const { leftColumnWidth, lastSyncTime } = global;
|
||||||
|
|
||||||
const state: StateProps = {
|
const state: StateProps = {
|
||||||
theme,
|
theme,
|
||||||
@ -682,7 +682,7 @@ export default memo(withGlobal<OwnProps>(
|
|||||||
lastSyncTime,
|
lastSyncTime,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!currentMessageList || !listIds.active) {
|
if (!currentMessageList) {
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user