Replies: Fix reply opening comments (#5643)
This commit is contained in:
parent
9f5319b770
commit
d5ed70956f
@ -95,6 +95,16 @@ export default function useInnerHandlers({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isRepliesChat && replyToPeerId && replyToTopId) {
|
||||||
|
openThread({
|
||||||
|
isComments: true,
|
||||||
|
originChannelId: replyToPeerId,
|
||||||
|
originMessageId: replyToTopId,
|
||||||
|
focusMessageId: replyToMsgId,
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
focusMessage({
|
focusMessage({
|
||||||
chatId: replyToPeerId || chatId,
|
chatId: replyToPeerId || chatId,
|
||||||
threadId: isRepliesChat ? replyToTopId : threadId, // Open comments from Replies bot, otherwise, keep current thread
|
threadId: isRepliesChat ? replyToTopId : threadId, // Open comments from Replies bot, otherwise, keep current thread
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user