Replies: Fix reply opening comments (#5643)

This commit is contained in:
zubiden 2025-03-01 17:59:11 +01:00 committed by Alexander Zinchuk
parent 9f5319b770
commit d5ed70956f

View File

@ -95,6 +95,16 @@ export default function useInnerHandlers({
return;
}
if (isRepliesChat && replyToPeerId && replyToTopId) {
openThread({
isComments: true,
originChannelId: replyToPeerId,
originMessageId: replyToTopId,
focusMessageId: replyToMsgId,
});
return;
}
focusMessage({
chatId: replyToPeerId || chatId,
threadId: isRepliesChat ? replyToTopId : threadId, // Open comments from Replies bot, otherwise, keep current thread