Merge pull request #877 from samcharles93/docs/messaging-sender-role-comment
docs(messaging): correct the Sender field's role-discrimination claim
This commit is contained in:
commit
4526e6e6bc
1 file changed
+6
-3
@@ -75,9 +75,12 @@ type Message struct {
|
||||
|
||||
// Sender is the channel-native display attribution (e.g. a Telegram
|
||||
// username) recorded when the message was written. Like SourceID it
|
||||
// is external correlation metadata, never the canonical identity:
|
||||
// role discrimination uses Role, never this field. It is preserved
|
||||
// so history search and transcript rendering keep working.
|
||||
// is external correlation metadata, never the canonical identity: the
|
||||
// canonical Role field is authoritative in-process. At the gateway wire
|
||||
// boundary (internal/infrastructure/gatewayrpc) Role is deliberately
|
||||
// dropped and rebuilt from Sender via RoleForSender, so Sender is also
|
||||
// preserved for that reconstruction and for history search and
|
||||
// transcript rendering.
|
||||
Sender string
|
||||
|
||||
// SenderID is the channel-native stable identifier for the party that
|
||||
|
||||
Reference in new issue
Block a user