Skip to content

Commit

Permalink
Step 12.35: Implement getPic
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Feb 26, 2017
1 parent d723792 commit bb9d8db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/imports/pages/chats/new-chat.ts
Expand Up @@ -3,7 +3,7 @@ import { AlertController, ViewController } from 'ionic-angular';
import { MeteorObservable } from 'meteor-rxjs';
import { _ } from 'meteor/underscore';
import { Observable, Subscription, BehaviorSubject } from 'rxjs';
import { Chats, Users } from '../../../../imports/collections';
import { Chats, Pictures, Users } from '../../../../imports/collections';
import { User } from '../../../../imports/models';
import template from './new-chat.html';

Expand Down Expand Up @@ -107,4 +107,8 @@ export class NewChatComponent implements OnInit {

alert.present();
}
}

getPic(pictureId): string {
return Pictures.getPictureUrl(pictureId);
}
}

0 comments on commit bb9d8db

Please sign in to comment.