Replies: Fix opening comments (#5626)

This commit is contained in:
zubiden 2025-03-01 17:59:00 +01:00 committed by Alexander Zinchuk
parent f8d0eb7311
commit d946547cc3

View File

@ -196,11 +196,20 @@ export default function useInnerHandlers({
} }
if (replyToPeerId && replyToTopId) { if (replyToPeerId && replyToTopId) {
focusMessage({ if (isRepliesChat) {
chatId: replyToPeerId, openThread({
threadId: replyToTopId, isComments: true,
messageId: forwardInfo!.fromMessageId!, originChannelId: replyToPeerId,
}); originMessageId: replyToTopId,
focusMessageId: forwardInfo!.fromMessageId!,
});
} else {
focusMessage({
chatId: replyToPeerId,
threadId: replyToTopId,
messageId: forwardInfo!.fromMessageId!,
});
}
} else { } else {
focusMessage({ focusMessage({
chatId: originalChatId, messageId: forwardInfo!.fromMessageId!, chatId: originalChatId, messageId: forwardInfo!.fromMessageId!,