Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk-java): describe message chatName and author as sent

Yudhi Armyndharis367be4f634ef
diff --git a/sdk/java/src/main/java/com/rmyndharis/openwa/model/MessageRecord.java b/sdk/java/src/main/java/com/rmyndharis/openwa/model/MessageRecord.java
index 37ab9333e..efe55ca8b 100644
--- a/sdk/java/src/main/java/com/rmyndharis/openwa/model/MessageRecord.java
+++ b/sdk/java/src/main/java/com/rmyndharis/openwa/model/MessageRecord.java
@@ -18,13 +18,15 @@ public record MessageRecord(
String type,
MessageDirection direction,
/**
- * Push name of the sender as the engine reported it; in a group this is the member who posted,
- * not the group subject. Null when no contact name was known.
+ * Push name of the sender as the engine reported it (their saved contact name when it reported
+ * no push name); in a group this is the member who posted, not the group subject. Null when no
+ * name was known.
*/
String chatName,
/**
* JID of the sender of a group, status or broadcast-list message ({@code from} is the group,
- * {@code status@broadcast} or the list id there); null on 1:1 messages and outgoing echoes.
+ * {@code status@broadcast} or the list id there; on Baileys a received list message is filed under
+ * the sender, so {@code from} is the sender too). Null on 1:1 messages and outgoing echoes.
*/
String author,
/** Storage key of the archived media copy, when chat-media archiving wrote one. */