From 3dd838fdd24e370aace54d8634fc183fca05cc3a Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 22 Jan 2020 11:07:58 +0100 Subject: [PATCH] Fix join group bug --- src/app/components/search/search.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/components/search/search.component.ts b/src/app/components/search/search.component.ts index 9dd92f8..f8f6b7e 100644 --- a/src/app/components/search/search.component.ts +++ b/src/app/components/search/search.component.ts @@ -78,7 +78,10 @@ export class SearchComponent implements OnInit { public joinGroup(group: GroupInfo) { group.allowedToJoinGroup = false; - this.requestService.joinGroup(group); + this.requestService.joinGroup(group) + .subscribe(() => { + this.data.addGroupToUser(group); + }); } }