Skip to content

Commit

Permalink
feat: added description property to the conversation
Browse files Browse the repository at this point in the history
  • Loading branch information
supersnager committed Dec 18, 2021
1 parent 8dde581 commit 8a565ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface ConversationParams {
readonly unreadCounter?: number;
readonly typingUsers?: TypingUsersList;
readonly draft?: string;
readonly description?: string;
readonly readonly?: boolean;
}

Expand All @@ -16,6 +17,7 @@ export class Conversation {
unreadCounter = 0;
participants: Array<Participant>;
typingUsers: TypingUsersList;
description = "";
draft = "";
readonly = false;

Expand All @@ -25,13 +27,15 @@ export class Conversation {
unreadCounter = 0,
typingUsers = new TypingUsersList({ items: [] }),
draft = "",
description = "",
readonly = false,
}: ConversationParams) {
this.id = id;
this.unreadCounter = unreadCounter;
this.participants = participants;
this.typingUsers = typingUsers;
this.draft = draft;
this.description = description;
this.readonly = readonly;
}

Expand Down

0 comments on commit 8a565ad

Please sign in to comment.