adding separate page for create a conversation

This commit is contained in:
Arjun Patel
2022-01-31 17:23:39 -08:00
parent f4eef9c3d0
commit 6a4b353024
7 changed files with 78 additions and 21 deletions
+12 -1
View File
@@ -4,13 +4,24 @@ import { Timestamp } from "firebase/firestore";
export default class Conversation {
id: string = uuid();
type: ConversationType;
name: string; // engineering, general, arjun and jacob...
createdDate: Timestamp = Timestamp.now();
createdByUserId: string;
constructor(_name: string, _createdByUserId: string) {
constructor(
_name: string,
_createdByUserId: string,
_type: ConversationType
) {
this.name = _name;
this.createdByUserId = _createdByUserId;
this.type = _type;
}
}
export enum ConversationType {
personal = "personal",
group = "group",
}