diff --git a/event/common.go b/event/common.go index d9dbc19..6eb7d62 100644 --- a/event/common.go +++ b/event/common.go @@ -279,6 +279,7 @@ const ( ConversationID = Field("ConversationID") GroupID = Field("GroupID") GroupServer = Field("GroupServer") + GroupName = Field("GroupName") ServerTokenY = Field("ServerTokenY") ServerTokenOnion = Field("ServerTokenOnion") GroupInvite = Field("GroupInvite") diff --git a/peer/cwtch_peer.go b/peer/cwtch_peer.go index 547f132..48e775c 100644 --- a/peer/cwtch_peer.go +++ b/peer/cwtch_peer.go @@ -588,6 +588,7 @@ func (cp *cwtchPeer) StartGroup(name string, server string) (int, error) { event.ConversationID: strconv.Itoa(conversationID), event.GroupID: group.GroupID, event.GroupServer: group.GroupServer, + event.GroupName: name, })) return conversationID, nil } @@ -652,6 +653,7 @@ func (cp *cwtchPeer) AddServer(serverSpecification string) (string, error) { cp.SetConversationAttribute(conversationInfo.ID, attr.PublicScope.ConstructScopedZonedPath(attr.ServerKeyZone.ConstructZonedPath(k)), v) } cp.SetConversationAttribute(conversationInfo.ID, attr.PublicScope.ConstructScopedZonedPath(attr.ServerKeyZone.ConstructZonedPath(string(model.BundleType))), serverSpecification) + cp.JoinServer(onion) return onion, err } return "", err