visible property
dynamic
visible
getter/setter pair
Determines whether the message field is visible. Pass either a boolean (false
to hide it),
or a {@link ConversationPredicate}. The latter approach lets you show/hide the message field
based on properties of the current conversation.
For example, to hide the message field when the current user has no write access to the current conversation, do the following:
// this predicate holds iff the current user's `access` to the current conversation is
// set to "ReadWrite"`:
const showMessageField = { access: ["==", "ReadWrite"] };
session.createInbox(conversation, { messageField: { visible: showMessageField } });
Defaults to true
.
Implementation
external dynamic /*bool|ConversationPredicate*/ visible;