GetStream / stream-chat-swiftui

SwiftUI Chat SDK โžœ Stream Chat ๐Ÿ’ฌ
https://getstream.io/chat/sdk/swiftui/
Other
342 stars 84 forks source link

Only show "Flag message" Action if user has permission #599

Closed bpollman closed 3 weeks ago

bpollman commented 1 month ago

๐Ÿ”— Issue Link

๐ŸŽฏ Goal

User shouldn't see Flag Message action if they cant use it

๐Ÿ›  Implementation

Simple capability check before adding Message action

๐Ÿงช Testing

Change user permissions and verify that the action can or cannot be seen

๐ŸŽจ Changes

image

โ˜‘๏ธ Checklist