Skip to content

Commit

Permalink
put scroll to reply under flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3orblade committed Nov 15, 2024
1 parent fc28a8e commit a1047be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ts/component/block/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,10 @@ const BlockChat = observer(class BlockChat extends React.Component<I.BlockCompon
};

onReplyClick (e: React.MouseEvent, message: any) {
if (!S.Common.config.experimental) {
return;
};

const rootId = this.getRootId();
const reply = S.Chat.getReply(rootId, message.replyToMessageId);
const limit = Math.ceil(J.Constant.limit.chat.messages / 2);
Expand Down

0 comments on commit a1047be

Please sign in to comment.