Back

[SOLVED] I keep hearing about teams. Would it be possible to make teams work like whatsapp groups

  • 0
  • Teams
๐ŸœUdon๐Ÿœ
25 May, 2023, 13:19

Not sure if it's possible or even practical. But let's say I created a team and when I add people to it our conversations stay between us. I'm just curious, I'm sure there's more than one way to do it. I'm working on a whatsapp clone

TL;DR
The user wants to know if it's possible to make teams work like WhatsApp groups. One solution suggested is to use a NoSQL approach where each group has its own collection. Another suggestion is to use roles within teams to achieve private conversations. The user is working on a WhatsApp clone and is curious about different ways to implement this.
Binyamin
25 May, 2023, 13:26

Mmm, That's an interested idea, and could work.

Let's say you have the group messages and you want to get only group messages you can set Team permission for a specific team.

Also, maybe it would be better to take one more step. Assign everyone to the same team - any user that is using your app - then create roles (which are dynamic teams within teams) per group.

๐ŸœUdon๐Ÿœ
25 May, 2023, 13:26

Oh wow great idea

Binyamin
25 May, 2023, 13:26

Last but not lest, you can think also of a NoSQL approach where you'll create new collection (using a function and the Database server SDK) for each group.

Binyamin
25 May, 2023, 13:27

The rest is the same, and you remove and adding user from the Team/Role in that collection.

Binyamin
25 May, 2023, 13:27

Doing so will create A lot of collections, But, Each one of them will me much more thinner and smaller. This will let you achieve a faster loading time.

๐ŸœUdon๐Ÿœ
25 May, 2023, 13:30

Very true

๐ŸœUdon๐Ÿœ
25 May, 2023, 13:30

I don't even know how to make a NoSQL on appwrite yet

๐ŸœUdon๐Ÿœ
25 May, 2023, 13:31

But the logic sounds great

Binyamin
25 May, 2023, 13:31

Is just a mindset.

๐ŸœUdon๐Ÿœ
25 May, 2023, 13:32

[SOLVED] I keep hearing about teams. Would it be possible to make teams work like whatsapp groups

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more