From e8a1884bda86795e76cd0dab05f3372312662652 Mon Sep 17 00:00:00 2001 From: chsakell Date: Tue, 4 Oct 2016 14:59:14 +0300 Subject: [PATCH] minor changes --- app/shared/components/match.component.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/app/shared/components/match.component.ts b/app/shared/components/match.component.ts index 124d93b..7f078b5 100644 --- a/app/shared/components/match.component.ts +++ b/app/shared/components/match.component.ts @@ -19,17 +19,6 @@ export class MatchComponent implements OnInit { ngOnInit() { } - subscribe() { - console.log(this.match.Id); - this.subscribed = true; - //this.feedService.subscribeToFeed(this.match.Id); - } - - unsubscribe() { - this.subscribed = false; - //this.feedService.unsubscribeToFeed(this.match.Id); - } - setSubscription(val: boolean) { this.subscribed = val; let subscription = @@ -51,6 +40,8 @@ export class MatchComponent implements OnInit { this.dataService.addChatMessage(messageToSend) .subscribe(() => { + // Nothing to do here + // Since is subscribed, caller will also receive the message console.log('message sent..'); }, error => {