Don't throttle const isNearBottom

patch-2
Sean King 2020-10-08 19:14:39 -06:00
rodzic 3a38eed5ba
commit 211163383e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 510C52BACD6E7257
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -137,7 +137,7 @@ class ChatMessageList extends ImmutablePureComponent {
const { initialLoad } = this.state;
const oldCount = prevProps.chatMessages.count();
const newCount = this.props.chatMessages.count();
const isNearBottom = throttle(this.isNearBottom(), 150);
const isNearBottom = this.isNearBottom();
const historyAdded = prevProps.chatMessages.getIn([0, 'id']) !== this.props.chatMessages.getIn([0, 'id']);
// Retain scroll bar position when loading old messages