You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// narrow the type to Group to access the group name
64
+
if (conversationinstanceofGroup) {
65
+
console.log(group.name);
66
+
}
67
+
68
+
// narrow the type to Dm to access the peer inboxId
69
+
if (conversationinstanceofDm) {
70
+
console.log(conversation.peerInboxId);
71
+
}
72
+
}
73
+
```
74
+
55
75
### Working with addresses
56
76
57
77
Conversations in XMTP can be `DMs` or `Groups`. The underlying technicalities are the same, but DMs are essentially groups locked between two users that can be reused - basically a fixed group of 2. This is how MLS works.
0 commit comments