Skip to content

Commit

Permalink
fix repeat voice
Browse files Browse the repository at this point in the history
Signed-off-by: Hicores <[email protected]>
  • Loading branch information
Hicores committed Nov 3, 2023
1 parent 980a37a commit 882f340
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/src/main/java/cc/hicore/hook/RepeaterPlus.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import android.widget.RelativeLayout;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import cc.hicore.QApp.QAppUtils;
import cc.hicore.ReflectUtil.MField;
import cc.hicore.ReflectUtil.XField;
import cc.hicore.ReflectUtil.XMethod;
Expand Down Expand Up @@ -382,8 +383,12 @@ private void repeatByForwardNt(Object msg) {
MsgAttributeInfo info = Nt_kernel_bridge.getDefaultAttributeInfo();
if (info != null) {
attrMap.put(0, info);
service.forwardMsg(l, contact, c, attrMap, (i, str, hashMap) -> {

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 {
service.forwardMsg(l, contact, c, attrMap, (i2, str2, hashMap) -> { });
}
});
}

Expand Down

0 comments on commit 882f340

Please sign in to comment.