Can 0xChat’s NIP-29 group work with multiple relays?

By the way, do you prefer group support for a single relay or multiple relays?

Reply to this note

Please Login to reply.

Discussion

Currently, it's not supported. Personally, I prefer using a single relay for group chats. The main advantage is message stability and consistency.

The downside is the single point of failure — but I believe this can be addressed by implementing a backup and migration mechanism to move the chat history to a new relay if needed.

> The main advantage is message stability and consistency.

🤔🤔🤔 Don’t think so.

Unlike notes, group messages rely on group management, and keeping group state in sync across multiple relays is very difficult — if not impossible.

If the user opens the group client, it only needs to fetch messages from multiple relays—specifically, messages from the last timestamp up to the current time. The client then uses the messages from whichever relay responds the fastest.

Pulling group messages from multiple relays is technically fine. But can we really say these relays represent the same group? For example, relay1 might show 3 members, relay2 has 4, and relay3 might already consider the group disbanded. In this case, the group messages you receive are unreliable.

The relay is only responsible for forwarding messages; everything else is outside its concern. The group member list is determined by the group owner.

A NIP-29 relay not only forwards messages, but also maintains and synchronizes group state.

That seems to be a design limitation of NIP-29.