You're viewing a single thread.
Yep very weird, should have been 255.
52 0 ReplyNo, you can't have a group of zero, so the counter doesn't need to waste a position counting zero.
56 0 Reply0 is reserved for the FBI agent listening in.
37 0 ReplyIf you ever create a system where the number of users is "group.members - 1" everywhere in the code, I'd be very disappointed in you and deny that PR.
On another note; I doubt WhatsApp are so concerned with performance they are actually limiting the number of group members by the data type.
12 0 ReplyBut it wouldn't be like that though would it. It would be public group.members() and the u8 would be private.
If all the millions of groups are saved on a central database then making the size a u8 isn't really that weird
10 0 ReplyI hadn't thought about it on their server side tbf. But the more i think about it maybe there are other compounding reasons to keep group sizes small, such as the exponential number of links in a growing network and such. But, that is all beyond my knowledge area.
3 0 Reply
Sure you can. It's a group that exists, but it has 0 participants.
4 0 ReplyYou probably could, if everyone got banned or something
3 0 ReplyTell that to the Castlevania 2 devs. https://lemmy.ml/comment/19720906
2 0 ReplyYou cannot also have a group of 1, therefore either is 255 or 257. 256 is oddly specific (or the code was made by an intern)
1 0 ReplySure you can.
8 0 ReplyOh. At this point I'm not sure what is worse :/
2 0 ReplyI mean, should the group and all the messages get deleted when the second to last person leaves? it only makes sense to let it stay as a 1 member group
3 0 Reply