|
|
@ -46,10 +46,12 @@ export class SocialService extends BaseService {
|
|
|
|
const body = SocialService.buildGroupCreateBody(name);
|
|
|
|
const body = SocialService.buildGroupCreateBody(name);
|
|
|
|
return this.postGraphql(body, null, 0)
|
|
|
|
return this.postGraphql(body, null, 0)
|
|
|
|
.pipe(tap(response => {
|
|
|
|
.pipe(tap(response => {
|
|
|
|
let group = new Group();
|
|
|
|
const group = response.data.createGroup;
|
|
|
|
group = response.data.createGroup;
|
|
|
|
this.data.addGroupToUser(new GroupInfo(
|
|
|
|
group.picture = group.buildPictureUrl(group.picture);
|
|
|
|
group.id,
|
|
|
|
this.data.addGroupToUser(group);
|
|
|
|
group.name,
|
|
|
|
|
|
|
|
group.picture,
|
|
|
|
|
|
|
|
group.deletable));
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|