Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix: channel active message callout timeout directly after scroll (#646)

gbirman4ac3be3c4722
diff --git a/js/app/packages/block-channel/component/MessageList/MessageList.tsx b/js/app/packages/block-channel/component/MessageList/MessageList.tsx
index 5988986c93..f08c8b6262 100644
--- a/js/app/packages/block-channel/component/MessageList/MessageList.tsx
+++ b/js/app/packages/block-channel/component/MessageList/MessageList.tsx
@@ -244,6 +244,9 @@ export function MessageList(props: MessageListProps) {
virtualHandle()?.scrollToIndex(index, {
align: 'center',
});
+ setTimeout(() => {
+ setTargetMessageActive(false);
+ }, TARGET_MESSAGE_ACTIVE_TIME);
},
5
);
@@ -652,10 +655,6 @@ export function MessageList(props: MessageListProps) {
keepMounted={keepMountedIndices()}
onScroll={handleScroll}
onScrollEnd={() => {
- setTimeout(() => {
- setTargetMessageActive(false);
- }, TARGET_MESSAGE_ACTIVE_TIME);
-
if (!initialScrollComplete()) {
setInitialScrollComplete(true);
}