Skip to content

Commit

Permalink
Update SocketHandler.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Darker935 authored Jun 17, 2024
1 parent 7224f92 commit ca52303
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/it/auties/whatsapp/socket/SocketHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,12 @@ public CompletableFuture<Void> sendReceipt(Jid jid, Jid participant, List<String
return CompletableFuture.completedFuture(null);
}

jid = jid.withAgent(null);
participant = participant.withAgent(null);
if (jid != null) {
jid = jid.withAgent(null);
}
if (participant != null) {
participant = participant.withAgent(null);
}

var attributes = Attributes.of()
.put("id", messages.getFirst())
Expand Down

0 comments on commit ca52303

Please sign in to comment.