mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-26 03:26:57 +08:00
Merge remote-tracking branch 'origin/errcode' into errcode
This commit is contained in:
commit
85b45583f4
@ -270,7 +270,7 @@ userInfoUpdated:
|
|||||||
|
|
||||||
#####################conversation#########################
|
#####################conversation#########################
|
||||||
conversationChanged:
|
conversationChanged:
|
||||||
isSendMsg: true
|
isSendMsg: false
|
||||||
reliabilityLevel: 1
|
reliabilityLevel: 1
|
||||||
unreadCount: false
|
unreadCount: false
|
||||||
offlinePush:
|
offlinePush:
|
||||||
|
@ -1109,7 +1109,7 @@ func (s *groupServer) DismissGroup(ctx context.Context, req *pbGroup.DismissGrou
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if !req.DeleteMember {
|
//if !req.DeleteMember {
|
||||||
//s.Notification.GroupDismissedNotification(ctx, req)
|
//s.Notification.GroupDismissedNotification(ctx, req)
|
||||||
tips := &sdkws.GroupDismissedTips{
|
tips := &sdkws.GroupDismissedTips{
|
||||||
Group: s.groupDB2PB(group, owner.UserID, uint32(len(userIDs))),
|
Group: s.groupDB2PB(group, owner.UserID, uint32(len(userIDs))),
|
||||||
@ -1121,7 +1121,7 @@ func (s *groupServer) DismissGroup(ctx context.Context, req *pbGroup.DismissGrou
|
|||||||
tips.OpUser = &sdkws.GroupMemberFullInfo{UserID: mcontext.GetOpUserID(ctx)}
|
tips.OpUser = &sdkws.GroupMemberFullInfo{UserID: mcontext.GetOpUserID(ctx)}
|
||||||
}
|
}
|
||||||
s.Notification.GroupDismissedNotification(ctx, tips)
|
s.Notification.GroupDismissedNotification(ctx, tips)
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
return resp, nil
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@ func (m *msgServer) messageVerification(ctx context.Context, data *msg.SendMsgRe
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if groupInfo.Status == constant.GroupStatusDismissed {
|
if groupInfo.Status == constant.GroupStatusDismissed && data.MsgData.ContentType != constant.GroupDismissedNotification {
|
||||||
return nil, errs.ErrArgs.Wrap("group is dismissed")
|
return nil, errs.ErrArgs.Wrap("group is dismissed")
|
||||||
}
|
}
|
||||||
if groupInfo.GroupType == constant.SuperGroup {
|
if groupInfo.GroupType == constant.SuperGroup {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user