(groupId: string)
| 201 | } |
| 202 | |
| 203 | setGroup(groupId: string) { |
| 204 | this.log('set group', groupId); |
| 205 | if (!this.groups.includes(groupId)) { |
| 206 | this.groups = [...this.groups, groupId]; |
| 207 | } |
| 208 | return this.send({ |
| 209 | type: 'assign_group', |
| 210 | payload: { |
| 211 | groupIds: [groupId], |
| 212 | profileId: this.profileId, |
| 213 | }, |
| 214 | }); |
| 215 | } |
| 216 | |
| 217 | setGroups(groupIds: string[]) { |
| 218 | this.log('set groups', groupIds); |