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) {
if (isRepliesChat) {
openThread({
isComments: true,
originChannelId: replyToPeerId,
originMessageId: replyToTopId,
focusMessageId: forwardInfo!.fromMessageId!,
});
} else {
focusMessage({ focusMessage({
chatId: replyToPeerId, chatId: replyToPeerId,
threadId: replyToTopId, threadId: replyToTopId,
messageId: forwardInfo!.fromMessageId!, messageId: forwardInfo!.fromMessageId!,
}); });
}
} else { } else {
focusMessage({ focusMessage({
chatId: originalChatId, messageId: forwardInfo!.fromMessageId!, chatId: originalChatId, messageId: forwardInfo!.fromMessageId!,