Fixes #4222 - Hide timeline item actions that the user's power level does not allow

This commit is contained in:
Stefan Ceriu
2025-06-18 17:02:49 +03:00
committed by Stefan Ceriu
parent f04f3e74a7
commit ccb0fc7de0
7 changed files with 14 additions and 2 deletions
@@ -27,6 +27,7 @@ struct TimelineView: View {
.sheet(item: $timelineContext.debugInfo) { TimelineItemDebugView(info: $0) }
.sheet(item: $timelineContext.actionMenuInfo) { info in
let actions = TimelineItemMenuActionProvider(timelineItem: info.item,
canCurrentUserSendMessage: timelineContext.viewState.canCurrentUserSendMessage,
canCurrentUserRedactSelf: timelineContext.viewState.canCurrentUserRedactSelf,
canCurrentUserRedactOthers: timelineContext.viewState.canCurrentUserRedactOthers,
canCurrentUserPin: timelineContext.viewState.canCurrentUserPin,