minor fixes for group functionality
This commit is contained in:
parent
00c8561677
commit
3efacc889d
|
@ -279,6 +279,7 @@ const (
|
||||||
ConversationID = Field("ConversationID")
|
ConversationID = Field("ConversationID")
|
||||||
GroupID = Field("GroupID")
|
GroupID = Field("GroupID")
|
||||||
GroupServer = Field("GroupServer")
|
GroupServer = Field("GroupServer")
|
||||||
|
GroupName = Field("GroupName")
|
||||||
ServerTokenY = Field("ServerTokenY")
|
ServerTokenY = Field("ServerTokenY")
|
||||||
ServerTokenOnion = Field("ServerTokenOnion")
|
ServerTokenOnion = Field("ServerTokenOnion")
|
||||||
GroupInvite = Field("GroupInvite")
|
GroupInvite = Field("GroupInvite")
|
||||||
|
|
|
@ -588,6 +588,7 @@ func (cp *cwtchPeer) StartGroup(name string, server string) (int, error) {
|
||||||
event.ConversationID: strconv.Itoa(conversationID),
|
event.ConversationID: strconv.Itoa(conversationID),
|
||||||
event.GroupID: group.GroupID,
|
event.GroupID: group.GroupID,
|
||||||
event.GroupServer: group.GroupServer,
|
event.GroupServer: group.GroupServer,
|
||||||
|
event.GroupName: name,
|
||||||
}))
|
}))
|
||||||
return conversationID, nil
|
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(k)), v)
|
||||||
}
|
}
|
||||||
cp.SetConversationAttribute(conversationInfo.ID, attr.PublicScope.ConstructScopedZonedPath(attr.ServerKeyZone.ConstructZonedPath(string(model.BundleType))), serverSpecification)
|
cp.SetConversationAttribute(conversationInfo.ID, attr.PublicScope.ConstructScopedZonedPath(attr.ServerKeyZone.ConstructZonedPath(string(model.BundleType))), serverSpecification)
|
||||||
|
cp.JoinServer(onion)
|
||||||
return onion, err
|
return onion, err
|
||||||
}
|
}
|
||||||
return "", err
|
return "", err
|
||||||
|
|
Loading…
Reference in New Issue