tonightpass / tonightpass

@tonightpass sdk and tools.
MIT License
7 stars 1 forks source link

Add Chat Types #8

Open AntoineKM opened 2 years ago

AntoineKM commented 2 years ago

We gonna have a Discord oriented chat with channels.

Channel type :

Channel = {
  id: string;
  type: "private" | "group";
  users: User[];
  createdAt: Date;
}

users field will be controlled on with which channel type is entered, so if the type is private then users field will be programmaticaly limited to 2 values.

ChannelMessage type :

ChannelMessage = {
  id: string;
  channel: Channel;
  sender: User;
  sent: boolean;
  content: string;
  attachements: Attachement[];
  updatedAt: string;
  createdAt: string;
}

Attachement = {
  type: string;
  url: string;
};

This can be edited, make sure it's a good way to do.

Gaurav-Malviya commented 2 years ago

Can you tell me where and what parameter does the chat type require?

jerembdn commented 2 years ago

Hey @Gaurav-Malviya, thanks for asking ! Issue description were updated so you're good, let me know if you are other questions.

Gaurav-Malviya commented 2 years ago

Hey @Gaurav-Malviya, thanks for asking !

Issue description were updated so you're good, let me know if you are other questions.

Got it man... Can you share me any medium (Discord, email is to share video conference link)to communicate with you regarding the project... I think I can heavily contribute to your project so I want to discuss it with you.

Enjoy your day... cheers mate!!

jerembdn commented 2 years ago

Hey @Gaurav-Malviya, thanks for asking ! Issue description were updated so you're good, let me know if you are other questions.

Got it man... Can you share me any medium (Discord, email is to share video conference link)to communicate with you regarding the project... I think I can heavily contribute to your project so I want to discuss it with you.

Enjoy your day... cheers mate!!

Nice, we have a link of the public Discord on the README.md of the project so you can go to it !

AntoineKM commented 2 years ago

Hey @Gaurav-Malviya, thanks for asking ! Issue description were updated so you're good, let me know if you are other questions.

Got it man... Can you share me any medium (Discord, email is to share video conference link)to communicate with you regarding the project... I think I can heavily contribute to your project so I want to discuss it with you.

Enjoy your day... cheers mate!!

Discord: https://discord.gg/VvvAkPqQ98 I'd love to chat with you! 😄

Gaurav-Malviya commented 2 years ago

Joined the group fellas!!😎👍