fix: repeat in topic group

This commit is contained in:
xtaodada 2022-12-04 09:10:20 +08:00
parent 5d4c4498e3
commit 82cd2e602d
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -32022,7 +32022,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
}
private void doRepeatMessage(boolean isLongClick, ArrayList<MessageObject> messages, boolean isRepeatAsCopy) {
if (selectedObject != null && selectedObject.messageOwner != null && (isLongClick || isThreadChat() || getMessagesController().isChatNoForwards(currentChat))) {
if (selectedObject != null && selectedObject.messageOwner != null && (isLongClick || (isThreadChat() && !isTopic) || getMessagesController().isChatNoForwards(currentChat))) {
// If selected message contains `replyTo`:
// When longClick it will reply to the `replyMessage` of selectedMessage
// When not LongClick but in a threadchat: reply to the Thread