getDefaultPowerLevel method

int getDefaultPowerLevel(
  1. Map<String, dynamic> powerLevelMap
)

Takes in [m.room.power_levels].content and returns the default power level

Implementation

int getDefaultPowerLevel(Map<String, dynamic> powerLevelMap) {
  return powerLevelMap.tryGet('users_default') ?? 0;
}