Merge branch 'max_dev' of Software_Engineering_I/greenvironment-frontend into master

master
Max_ES 5 years ago committed by Gitea
commit b3f6826d2d

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

Loading…
Cancel
Save