()
| 682 | ); |
| 683 | |
| 684 | const p = participant.participant; |
| 685 | if (p instanceof Api.ChannelParticipantCreator) return true; |
| 686 | if (p instanceof Api.ChannelParticipantAdmin) { |
| 687 | const rights = p.adminRights; |
| 688 | return !!(rights?.banUsers || rights?.deleteMessages); |
| 689 | } |