diff --git a/api/server/publications.ts b/api/server/publications.ts index bddde20f4..4a0445f5f 100644 --- a/api/server/publications.ts +++ b/api/server/publications.ts @@ -80,7 +80,16 @@ Meteor.publishComposite('chats', function(): PublishCompositeConfig { }, { fields: { profile: 1 } }); - } + }, + children: [ + > { + find: (user, chat) => { + return Pictures.collection.find(user.profile.pictureId, { + fields: { url: 1 } + }); + } + } + ] } ] };