Add set_user_level() and set_event_level() to Matrix.Event.RoomPowerLevels
Signed-off-by: Gergely Polonkai <gergely@polonkai.eu>
This commit is contained in:
parent
a73866a918
commit
2dc42021b6
@ -215,4 +215,16 @@ public class Matrix.Event.RoomPowerLevels : Matrix.Event.State {
|
||||
|
||||
base.to_json(json_data);
|
||||
}
|
||||
|
||||
public void
|
||||
set_user_level(string user_id, int level)
|
||||
{
|
||||
_user_levels[user_id] = level;
|
||||
}
|
||||
|
||||
public void
|
||||
set_event_level(string event_type, int level)
|
||||
{
|
||||
_event_levels[event_type] = level;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user