isUserAllowedToSend

fun isUserAllowedToSend(    userId: String,     isState: Boolean,     eventType: String?): Boolean

Tell if an user can send an event of a certain type.

Return

true if the user can send this type of event

Parameters

userId

the id of the user to check for.

isState

true if the event is a state event (ie. state key is not null)

eventType

the event type to check for