mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 20:10:04 +03:00
Check permission before triggering history readability click action.
This commit is contained in:
parent
32721caf5a
commit
4d6ba5a491
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ class RoomSettingsController @Inject constructor(
|
|||
dividerColor = dividerColor,
|
||||
divider = false,
|
||||
editable = data.actionPermissions.canChangeHistoryReadability,
|
||||
action = { callback?.onHistoryVisibilityClicked() }
|
||||
action = { if (data.actionPermissions.canChangeHistoryReadability) callback?.onHistoryVisibilityClicked() }
|
||||
)
|
||||
|
||||
if (roomSummary.isEncrypted) {
|
||||
|
|
Loading…
Add table
Reference in a new issue