mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-28 12:56:35 +08:00
group
This commit is contained in:
parent
5873ed3b51
commit
4c7986e1b8
@ -10,7 +10,7 @@ import (
|
|||||||
func UpdateGroupInfoMap(group *sdkws.GroupInfoForSet) map[string]any {
|
func UpdateGroupInfoMap(group *sdkws.GroupInfoForSet) map[string]any {
|
||||||
m := make(map[string]any)
|
m := make(map[string]any)
|
||||||
if group.GroupName != "" {
|
if group.GroupName != "" {
|
||||||
m["group_name"] = group.GroupName
|
m["name"] = group.GroupName
|
||||||
}
|
}
|
||||||
if group.Notification != "" {
|
if group.Notification != "" {
|
||||||
m["Notification"] = group.Notification
|
m["Notification"] = group.Notification
|
||||||
|
@ -769,7 +769,7 @@ func (s *groupServer) TransferGroupOwner(ctx context.Context, req *pbGroup.Trans
|
|||||||
oldOwner := memberMap[req.OldOwnerUserID]
|
oldOwner := memberMap[req.OldOwnerUserID]
|
||||||
if tokenverify.IsAppManagerUid(ctx) {
|
if tokenverify.IsAppManagerUid(ctx) {
|
||||||
if oldOwner == nil {
|
if oldOwner == nil {
|
||||||
oldOwner, err = s.GroupDatabase.TakeGroupOwner(ctx, req.OldOwnerUserID)
|
_, err = s.GroupDatabase.TakeGroupOwner(ctx, req.OldOwnerUserID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user