canSendDefaultMessages property
bool
get
canSendDefaultMessages
The default level required to send message events. This checks if the
user is capable of sending m.room.message
events.
Please be aware that this also returns false
if the room is encrypted but the client is not able to use encryption.
If you do not want this check or want to check other events like
m.sticker
use canSendEvent('<event-type>')
.
Implementation
bool get canSendDefaultMessages {
if (encrypted && !client.encryptionEnabled) return false;
return canSendEvent(encrypted ? EventTypes.Encrypted : EventTypes.Message);
}