(values)
| 1000 | } |
| 1001 | |
| 1002 | static async createChannelFromStream(values) { |
| 1003 | try { |
| 1004 | const response = await request( |
| 1005 | `${host}/api/channels/channels/from-stream/`, |
| 1006 | { |
| 1007 | method: 'POST', |
| 1008 | body: values, |
| 1009 | } |
| 1010 | ); |
| 1011 | |
| 1012 | if (response.id) { |
| 1013 | useChannelsStore.getState().addChannel(response); |
| 1014 | } |
| 1015 | |
| 1016 | return response; |
| 1017 | } catch (e) { |
| 1018 | errorNotification('Failed to create channel', e); |
| 1019 | } |
| 1020 | } |
| 1021 | |
| 1022 | static async createChannelsFromStreamsAsync( |
| 1023 | streamIds, |
no test coverage detected