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