nice flow and quick working without creating a new conversation
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { FieldValue, serverTimestamp, Timestamp } from 'firebase/firestore';
|
||||
import { User } from './user.model';
|
||||
export default class Conversation {
|
||||
id: string;
|
||||
|
||||
@@ -9,6 +10,8 @@ export default class Conversation {
|
||||
|
||||
public members: MemberMap,
|
||||
|
||||
public userCache: User[],
|
||||
|
||||
public name: string | null = null,
|
||||
|
||||
public lastUpdatedDate = Timestamp.now(),
|
||||
@@ -20,8 +23,8 @@ export default class Conversation {
|
||||
}
|
||||
|
||||
export type MemberMap = {
|
||||
[memberId: string]: ConversationMember
|
||||
}
|
||||
[memberId: string]: ConversationMember;
|
||||
};
|
||||
|
||||
export class ConversationMember {
|
||||
constructor(
|
||||
@@ -44,4 +47,4 @@ export enum MemberState {
|
||||
priority = 'priority',
|
||||
inbox = 'inbox',
|
||||
// deleted = "deleted"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user