minor changes

This commit is contained in:
chsakell
2016-10-04 14:59:14 +03:00
parent fdcae26d63
commit e8a1884bda

View File

@@ -19,17 +19,6 @@ export class MatchComponent implements OnInit {
ngOnInit() { } 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) { setSubscription(val: boolean) {
this.subscribed = val; this.subscribed = val;
let subscription = let subscription =
@@ -51,6 +40,8 @@ export class MatchComponent implements OnInit {
this.dataService.addChatMessage(messageToSend) this.dataService.addChatMessage(messageToSend)
.subscribe(() => { .subscribe(() => {
// Nothing to do here
// Since is subscribed, caller will also receive the message
console.log('message sent..'); console.log('message sent..');
}, },
error => { error => {