parent
40f5d0f459
commit
f6aaf49164
1 changed files with 1041 additions and 144 deletions
|
|
@ -8,4 +8,7 @@ class const RoomPowerLevels({
|
|||
double levelOf(String userId) => creators.contains(userId)
|
||||
? double.infinity
|
||||
: (content.users[userId] ?? content.usersDefault).toDouble();
|
||||
|
||||
bool canEndPoll(String userId, {required String pollSender}) =>
|
||||
userId == pollSender || levelOf(userId) >= content.redact;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue