Fix join group bug

master
Max 5 years ago
parent 79ee9e3398
commit 3dd838fdd2

@ -78,7 +78,10 @@ export class SearchComponent implements OnInit {
public joinGroup(group: GroupInfo) { public joinGroup(group: GroupInfo) {
group.allowedToJoinGroup = false; group.allowedToJoinGroup = false;
this.requestService.joinGroup(group); this.requestService.joinGroup(group)
.subscribe(() => {
this.data.addGroupToUser(group);
});
} }
} }

Loading…
Cancel
Save