Skip to content

Commit

Permalink
Step 12.33: Fetch user image from server
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and DAB0mB committed Feb 13, 2017
1 parent 20b368d commit 308a950
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/imports/pages/chats/chats.ts
Expand Up @@ -3,8 +3,8 @@ import { NavController, PopoverController, ModalController, AlertController } fr
import { MeteorObservable } from 'meteor-rxjs';
import * as Moment from 'moment';
import { Observable, Subscriber } from 'rxjs';
import { Chats, Messages, Users } from '../../../../imports/collections';
import { Chat, Message, MessageType } from '../../../../imports/models';
import { Chats, Messages, Users, Pictures } from '../../../../imports/collections';
import { Chat, Message } from '../../../../imports/models';
import { ChatsOptionsComponent } from './chats-options';
import { MessagesPage } from '../messages/messages';
import template from './chats.html';
Expand Down Expand Up @@ -50,7 +50,7 @@ export class ChatsPage implements OnInit {

if (receiver) {
chat.title = receiver.profile.name;
chat.picture = receiver.profile.picture;
chat.picture = Pictures.getPictureUrl(receiver.profile.pictureId);
}

// This will make the last message reactive
Expand Down

0 comments on commit 308a950

Please sign in to comment.