RoomPowerLevels

class RoomPowerLevels(val powerLevelsContent: PowerLevelsContent?, roomCreateContent: RoomCreateContentWithSender?)

This class is an helper around PowerLevelsContent and RoomCreateContent.

Constructors

Link copied to clipboard
constructor(powerLevelsContent: PowerLevelsContent?, roomCreateContent: RoomCreateContentWithSender?)

Functions

Link copied to clipboard

Returns the user power level of a dedicated user Id.

Link copied to clipboard

Returns the user power level of a dedicated user Id.

Link copied to clipboard

Check if the user have the necessary power level to ban.

Link copied to clipboard

Check if the user have the necessary power level to invite.

Link copied to clipboard

Check if the user have the necessary power level to kick (remove).

Link copied to clipboard

Check if the user have the necessary power level to redact.

Link copied to clipboard
fun isUserAbleToTriggerNotification(userId: String, notificationKey: String): Boolean
Link copied to clipboard
fun isUserAllowedToSend(userId: String, isState: Boolean, eventType: String?): Boolean

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

Properties