(id)
| 626 | } |
| 627 | |
| 628 | static async deleteChannel(id) { |
| 629 | try { |
| 630 | await request(`${host}/api/channels/channels/${id}/`, { |
| 631 | method: 'DELETE', |
| 632 | }); |
| 633 | |
| 634 | useChannelsStore.getState().removeChannels([id]); |
| 635 | await API.requeryStreams(); |
| 636 | } catch (e) { |
| 637 | errorNotification('Failed to delete channel', e); |
| 638 | } |
| 639 | } |
| 640 | |
| 641 | // @TODO: the bulk delete endpoint is currently broken |
| 642 | static async deleteChannels(channel_ids) { |
no test coverage detected