From 0dd2bbbee677ae10c93f36070db01bac12137d7b Mon Sep 17 00:00:00 2001 From: Hicores Date: Mon, 20 Nov 2023 21:53:28 +0800 Subject: [PATCH] fix: can't repeat some msg --- app/src/main/java/cc/hicore/hook/RepeaterPlus.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/cc/hicore/hook/RepeaterPlus.java b/app/src/main/java/cc/hicore/hook/RepeaterPlus.java index 5e51bc2c89..d38c5a2761 100644 --- a/app/src/main/java/cc/hicore/hook/RepeaterPlus.java +++ b/app/src/main/java/cc/hicore/hook/RepeaterPlus.java @@ -402,10 +402,12 @@ private void repeatByForwardNt(Object msg) { } service.getMsgsByMsgId(contact, l, (i, str, list) ->{ - if (list.size() > 0 && list.get(0).getElements().get(0).getPttElement() != null){ - service.sendMsg(service.getMsgUniqueId(QAppUtils.getServiceTime()),contact,list.get(0).getElements(),attrMap,(i1, str1) -> { }); - }else { + if (list.size() > 0 && list.get(0).getElements().get(0).getPicElement() != null + || list.get(0).getElements().get(0).getStructMsgElement() != null + || list.get(0).getElements().get(0).getArkElement() != null){ service.forwardMsg(l, contact, c, attrMap, (i2, str2, hashMap) -> { }); + }else { + service.sendMsg(service.getMsgUniqueId(QAppUtils.getServiceTime()),contact,list.get(0).getElements(),attrMap,(i1, str1) -> { }); } });