@ -308,7 +308,7 @@ func (g *NotificationSender) setSortVersion(ctx context.Context, version *uint64
}
}
func ( g * NotificationSender ) GroupCreatedNotification ( ctx context . Context , tips * sdkws . GroupCreatedTips , sendNotification * bool ) {
func ( g * NotificationSender ) GroupCreatedNotification ( ctx context . Context , tips * sdkws . GroupCreatedTips , SendMessage * bool ) {
var err error
defer func ( ) {
if err != nil {
@ -319,7 +319,7 @@ func (g *NotificationSender) GroupCreatedNotification(ctx context.Context, tips
return
}
g . setVersion ( ctx , & tips . GroupMemberVersion , & tips . GroupMemberVersionID , database . GroupMemberVersionName , tips . Group . GroupID )
g . Notification ( ctx , mcontext . GetOpUserID ( ctx ) , tips . Group . GroupID , constant . GroupCreatedNotification , tips , notification . WithSend Notification( sendNotification ) )
g . Notification ( ctx , mcontext . GetOpUserID ( ctx ) , tips . Group . GroupID , constant . GroupCreatedNotification , tips , notification . WithSend Message( SendMessage ) )
}
func ( g * NotificationSender ) GroupInfoSetNotification ( ctx context . Context , tips * sdkws . GroupInfoSetTips ) {
@ -506,7 +506,7 @@ func (g *NotificationSender) GroupOwnerTransferredNotification(ctx context.Conte
g . Notification ( ctx , mcontext . GetOpUserID ( ctx ) , group . GroupID , constant . GroupOwnerTransferredNotification , tips )
}
func ( g * NotificationSender ) MemberKickedNotification ( ctx context . Context , tips * sdkws . MemberKickedTips , sendNotification * bool ) {
func ( g * NotificationSender ) MemberKickedNotification ( ctx context . Context , tips * sdkws . MemberKickedTips , SendMessage * bool ) {
var err error
defer func ( ) {
if err != nil {
@ -517,10 +517,10 @@ func (g *NotificationSender) MemberKickedNotification(ctx context.Context, tips
return
}
g . setVersion ( ctx , & tips . GroupMemberVersion , & tips . GroupMemberVersionID , database . GroupMemberVersionName , tips . Group . GroupID )
g . Notification ( ctx , mcontext . GetOpUserID ( ctx ) , tips . Group . GroupID , constant . MemberKickedNotification , tips , notification . WithSend Notification( sendNotification ) )
g . Notification ( ctx , mcontext . GetOpUserID ( ctx ) , tips . Group . GroupID , constant . MemberKickedNotification , tips , notification . WithSend Message( SendMessage ) )
}
func ( g * NotificationSender ) GroupApplicationAgreeMemberEnterNotification ( ctx context . Context , groupID string , sendNotification * bool , invitedOpUserID string , entrantUserID ... string ) error {
func ( g * NotificationSender ) GroupApplicationAgreeMemberEnterNotification ( ctx context . Context , groupID string , SendMessage * bool , invitedOpUserID string , entrantUserID ... string ) error {
var err error
defer func ( ) {
if err != nil {
@ -570,7 +570,7 @@ func (g *NotificationSender) GroupApplicationAgreeMemberEnterNotification(ctx co
}
}
g . setVersion ( ctx , & tips . GroupMemberVersion , & tips . GroupMemberVersionID , database . GroupMemberVersionName , tips . Group . GroupID )
g . Notification ( ctx , mcontext . GetOpUserID ( ctx ) , group . GroupID , constant . MemberInvitedNotification , tips , notification . WithSend Notification( sendNotification ) )
g . Notification ( ctx , mcontext . GetOpUserID ( ctx ) , group . GroupID , constant . MemberInvitedNotification , tips , notification . WithSend Message( SendMessage ) )
return nil
}
@ -615,7 +615,7 @@ func (g *NotificationSender) MemberEnterNotification(ctx context.Context, groupI
return nil
}
func ( g * NotificationSender ) GroupDismissedNotification ( ctx context . Context , tips * sdkws . GroupDismissedTips , sendNotification * bool ) {
func ( g * NotificationSender ) GroupDismissedNotification ( ctx context . Context , tips * sdkws . GroupDismissedTips , SendMessage * bool ) {
var err error
defer func ( ) {
if err != nil {
@ -625,7 +625,7 @@ func (g *NotificationSender) GroupDismissedNotification(ctx context.Context, tip
if err = g . fillOpUser ( ctx , & tips . OpUser , tips . Group . GroupID ) ; err != nil {
return
}
g . Notification ( ctx , mcontext . GetOpUserID ( ctx ) , tips . Group . GroupID , constant . GroupDismissedNotification , tips , notification . WithSend Notification( sendNotification ) )
g . Notification ( ctx , mcontext . GetOpUserID ( ctx ) , tips . Group . GroupID , constant . GroupDismissedNotification , tips , notification . WithSend Message( SendMessage ) )
}
func ( g * NotificationSender ) GroupMemberMutedNotification ( ctx context . Context , groupID , groupMemberUserID string , mutedSeconds uint32 ) {