sender property

User? sender
getter/setter pair

The user who created the message.

If your Chat app authenticates as a user, the output only populates the user name and type fields for both internal and external users, unless they are members of the space or have a prior affinity, like a direct message (DM) conversation, with the calling user.

Output only.

Implementation

User? sender;