diff --git a/src/pages/chats/new-chat.ts b/src/pages/chats/new-chat.ts index df3f90019..91898ad16 100644 --- a/src/pages/chats/new-chat.ts +++ b/src/pages/chats/new-chat.ts @@ -1,5 +1,5 @@ import { Component, OnInit } from '@angular/core'; -import { Chats, Users } from 'api/collections'; +import { Chats, Users, Pictures } from 'api/collections'; import { User } from 'api/models'; import { AlertController, ViewController } from 'ionic-angular'; import { MeteorObservable } from 'meteor-rxjs'; @@ -107,4 +107,8 @@ export class NewChatComponent implements OnInit { alert.present(); } + + getPic(pictureId): string { + return Pictures.getPictureUrl(pictureId); + } }