From 3ff4b070c4f2dc847d5a029568b1c00107021866 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 22 Jan 2020 16:12:46 +0100 Subject: [PATCH] Fix group membership gets updated on leave --- src/app/components/group/group.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/group/group.component.ts b/src/app/components/group/group.component.ts index efb774e..ddd1a64 100644 --- a/src/app/components/group/group.component.ts +++ b/src/app/components/group/group.component.ts @@ -188,7 +188,9 @@ export class GroupComponent implements OnInit { } leaveGroup() { - this.groupService.leaveGroup(this.groupProfile.id).subscribe(); + this.groupService.leaveGroup(this.groupProfile.id).subscribe(response => { + this.groupProfile.joined = false; + }); } }