A conversation between Users

interface Chat {
    address: null | Address;
    allowImage: boolean;
    chatMessages: Message[];
    conversation: Conversation;
    conversationPartner: User;
    favoriteByCurrentUser: boolean;
    isDownVote: boolean;
    isRateBlockEnabled: boolean;
    isUpVote: boolean;
    partnerChatProfile: User;
    post: Post;
    quidTransactionsCount: number;
    serverToken: string;
    user: User;
    userChatProfile: User;
    userId: string;
    visibleCameraIcon: boolean;
    wsUrl: string;
}

Properties

address: null | Address

The Address of the other user in the Chat

allowImage: boolean

If images are allowed in this conversation

chatMessages: Message[]

The Messages in the Chat

conversation: Conversation

The Conversation linked to this Chat

conversationPartner: User

The profile of the User on the other side of the Chat

favoriteByCurrentUser: boolean

Is this Chat favorites

isDownVote: boolean

Has the other User been down voted by us in this Chat?

isRateBlockEnabled: boolean
isUpVote: boolean

Has the other User been up voted by us in this Chat?

partnerChatProfile: User

The profile of the User on the other side of the Chat

Example

This is a subset of the User's information
post: Post

The Post that the Chat is in reference to

quidTransactionsCount: number

The number of Messages that incurred a quid cost

serverToken: string

TODO: Search for other values

Example

'server-token'
user: User

The User that we are in the Chat

userChatProfile: User

The profile of the User that we are in the Chat

Example

This is a subset of the {@link User}'s information
userId: string

The current User's User#id

visibleCameraIcon: boolean

Should the camera icon (to take a photo) be shown in the app?

wsUrl: string

Generated using TypeDoc