Skip to content

Commit

Permalink
Sent messages aren't showing on WhatsApp Desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
Darker935 authored Apr 28, 2024
1 parent 0873de8 commit c9b4d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/it/auties/whatsapp/api/Whatsapp.java
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ public CompletableFuture<ChatMessageInfo> sendChatMessage(JidProvider recipient,
.status(MessageStatus.PENDING)
.senderJid(jidOrThrowError())
.key(key)
.message(message.withDeviceInfo(deviceInfo))
.message(recipient.toJid().hasServer(JidServer.GROUP) ? message : message.withDeviceInfo(deviceInfo))
.timestampSeconds(timestamp)
.broadcast(recipient.toJid().hasServer(JidServer.BROADCAST))
.build();
Expand Down

0 comments on commit c9b4d9f

Please sign in to comment.