Skip to content

Commit

Permalink
Update SocketHandler.java
Browse files Browse the repository at this point in the history
Removing agent from jids (participant and jid)
  • Loading branch information
Darker935 authored Jun 16, 2024
1 parent 5e89fc6 commit 7224f92
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/main/java/it/auties/whatsapp/socket/SocketHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -715,12 +715,9 @@ public CompletableFuture<Void> sendReceipt(Jid jid, Jid participant, List<String
if (messages.isEmpty()) {
return CompletableFuture.completedFuture(null);
}
if (jid.hasServer(JidServer.LID)) {
jid = jid.toSimpleJid();
}
if (participant.hasServer(JidServer.LID)) {
participant = participant.toSimpleJid();
}

jid = jid.withAgent(null);
participant = participant.withAgent(null);

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

0 comments on commit 7224f92

Please sign in to comment.