Skip to content

Commit

Permalink
fix: can't repeat some msg
Browse files Browse the repository at this point in the history
  • Loading branch information
Hicores committed Nov 20, 2023
1 parent ffb0bd5 commit 0dd2bbb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/src/main/java/cc/hicore/hook/RepeaterPlus.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) -> { });
}
});

Expand Down

0 comments on commit 0dd2bbb

Please sign in to comment.