|
|
|
@ -245,12 +245,15 @@ func GroupCreatedNotification(operationID, opUserID, groupID string, initMemberL
|
|
|
|
|
// notification := ""
|
|
|
|
|
// introduction := ""
|
|
|
|
|
// faceURL := ""
|
|
|
|
|
func GroupInfoSetNotification(operationID, opUserID, groupID string, groupName, notification, introduction, faceURL string, needVerification *wrapperspb.Int32Value) {
|
|
|
|
|
func GroupInfoSetNotification(operationID, opUserID, groupID string, groupName, notification, introduction, faceURL string, needVerification, applyMemberFriend, lookMemberInfo *wrapperspb.Int32Value) {
|
|
|
|
|
GroupInfoChangedTips := open_im_sdk.GroupInfoSetTips{Group: &open_im_sdk.GroupInfo{}, OpUser: &open_im_sdk.GroupMemberFullInfo{}}
|
|
|
|
|
if err := setGroupInfo(groupID, GroupInfoChangedTips.Group); err != nil {
|
|
|
|
|
log.Error(operationID, "setGroupInfo failed ", err.Error(), groupID)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
GroupInfoChangedTips.Group.NeedVerification = 0
|
|
|
|
|
GroupInfoChangedTips.Group.LookMemberInfo = 0
|
|
|
|
|
GroupInfoChangedTips.Group.ApplyMemberFriend = 0
|
|
|
|
|
GroupInfoChangedTips.Group.GroupName = groupName
|
|
|
|
|
GroupInfoChangedTips.Group.Notification = notification
|
|
|
|
|
GroupInfoChangedTips.Group.Introduction = introduction
|
|
|
|
@ -258,6 +261,12 @@ func GroupInfoSetNotification(operationID, opUserID, groupID string, groupName,
|
|
|
|
|
if needVerification != nil {
|
|
|
|
|
GroupInfoChangedTips.Group.NeedVerification = needVerification.Value
|
|
|
|
|
}
|
|
|
|
|
if applyMemberFriend != nil {
|
|
|
|
|
GroupInfoChangedTips.Group.ApplyMemberFriend = applyMemberFriend.Value
|
|
|
|
|
}
|
|
|
|
|
if lookMemberInfo != nil {
|
|
|
|
|
GroupInfoChangedTips.Group.LookMemberInfo = lookMemberInfo.Value
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if err := setOpUserInfo(opUserID, groupID, GroupInfoChangedTips.OpUser); err != nil {
|
|
|
|
|
log.Error(operationID, "setOpUserInfo failed ", err.Error(), opUserID, groupID)
|
|
|
|
|