Skip to content

Commit

Permalink
Auto-sync groups created without members
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine committed Jan 13, 2025
1 parent 91565a6 commit 589b9cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/xmtp.chat/src/components/NewConversation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ export const NewConversation: React.FC = () => {
? policySet
: undefined,
});
// automatically sync when creating a group with no members
if (!isDmGroup && members.length === 0) {
await conversation.sync();
}
void navigate(`/conversations/${conversation.id}`);
};

Expand Down

0 comments on commit 589b9cc

Please sign in to comment.