mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-25 10:55:55 +03:00
Remove ability to kick or ban yourself
This commit is contained in:
parent
3430a8f3ea
commit
262f10af9a
1 changed files with 2 additions and 2 deletions
|
@ -227,8 +227,8 @@ class RoomMemberProfileController @Inject constructor(
|
|||
return
|
||||
}
|
||||
val membership = state.asyncMembership() ?: return
|
||||
val canKick = state.actionPermissions.canKick
|
||||
val canBan = state.actionPermissions.canBan
|
||||
val canKick = !state.isMine && state.actionPermissions.canKick
|
||||
val canBan = !state.isMine && state.actionPermissions.canBan
|
||||
val canEditPowerLevel = state.actionPermissions.canEditPowerLevel
|
||||
if (canKick || canBan || canEditPowerLevel) {
|
||||
buildProfileSection(stringProvider.getString(R.string.room_profile_section_admin))
|
||||
|
|
Loading…
Reference in a new issue