// @flow import gql from 'graphql-tag'; import type { UserInfoType } from '../user/userInfo'; export type ParticipantType = { ...$Exact, userId: string, }; export type DirectMessageThreadInfoType = { id: string, snippet: string, threadLastActive: Date, participants: Array, }; export default gql` fragment directMessageThreadInfo on DirectMessageThread { id snippet threadLastActive participants { id name profilePhoto username userId } } `;