(actions []policy.Action)
| 307 | } |
| 308 | |
| 309 | func convertToChatRole(actions []policy.Action) codersdk.ChatRole { |
| 310 | if slice.SameElements(actions, db2sdk.ChatRoleActions(codersdk.ChatRoleRead)) { |
| 311 | return codersdk.ChatRoleRead |
| 312 | } |
| 313 | |
| 314 | return codersdk.ChatRoleDeleted |
| 315 | } |
no test coverage detected