Page MenuHomePhabricator

D13634.id45057.diff
No OneTemporary

D13634.id45057.diff

diff --git a/web/chat/chat-message-list.react.js b/web/chat/chat-message-list.react.js
--- a/web/chat/chat-message-list.react.js
+++ b/web/chat/chat-message-list.react.js
@@ -17,11 +17,7 @@
threadOtherMembers,
} from 'lib/shared/thread-utils.js';
import type { ThreadInfo } from 'lib/types/minimally-encoded-thread-permissions-types.js';
-import {
- threadTypeIsPersonal,
- threadTypeIsThick,
-} from 'lib/types/thread-types-enum.js';
-import sleep from 'lib/utils/sleep.js';
+import { threadTypeIsPersonal } from 'lib/types/thread-types-enum.js';
import { defaultMaxTextAreaHeight, editBoxHeight } from './chat-constants.js';
import css from './chat-message-list.css';
@@ -122,7 +118,11 @@
const prevMessageListData = prevProps.messageListData;
const { messageContainer } = this;
- if (messageContainer && prevMessageListData !== messageListData) {
+ if (
+ messageContainer &&
+ prevMessageListData !== messageListData &&
+ messageContainer.scrollTop === 0
+ ) {
this.onScroll();
}
@@ -382,9 +382,6 @@
this.loadingFromScroll = true;
try {
- if (threadTypeIsThick(this.props.threadInfo.type)) {
- await sleep(100);
- }
await this.props.fetchMessages();
} finally {
this.loadingFromScroll = false;

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 8:54 PM (15 h, 24 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2695429
Default Alt Text
D13634.id45057.diff (1 KB)

Event Timeline