diff --git a/pkg/common/config/config.go b/pkg/common/config/config.go index 7ad815e86..80edca456 100644 --- a/pkg/common/config/config.go +++ b/pkg/common/config/config.go @@ -144,6 +144,8 @@ type Notification struct { GroupMemberMuted NotificationConfig `mapstructure:"groupMemberMuted"` GroupMemberCancelMuted NotificationConfig `mapstructure:"groupMemberCancelMuted"` GroupMemberInfoSet NotificationConfig `mapstructure:"groupMemberInfoSet"` + GroupMemberSetToAdmin NotificationConfig `yaml:"groupMemberSetToAdmin"` + GroupMemberSetToOrdinary NotificationConfig `yaml:"groupMemberSetToOrdinaryUser"` GroupInfoSetAnnouncement NotificationConfig `mapstructure:"groupInfoSetAnnouncement"` GroupInfoSetName NotificationConfig `mapstructure:"groupInfoSetName"` FriendApplicationAdded NotificationConfig `mapstructure:"friendApplicationAdded"` diff --git a/pkg/rpcclient/msg.go b/pkg/rpcclient/msg.go index d382f4315..950b119f9 100644 --- a/pkg/rpcclient/msg.go +++ b/pkg/rpcclient/msg.go @@ -34,8 +34,8 @@ import ( "google.golang.org/protobuf/proto" ) -func newContentTypeConf(conf *config.Notification) map[int32]config.NotificationConf { - return map[int32]config.NotificationConf{ +func newContentTypeConf(conf *config.Notification) map[int32]config.NotificationConfig { + return map[int32]config.NotificationConfig{ // group constant.GroupCreatedNotification: conf.GroupCreated, constant.GroupInfoSetNotification: conf.GroupInfoSet, @@ -213,7 +213,7 @@ func (m *MessageRpcClient) GetConversationMaxSeq(ctx context.Context, conversati } type NotificationSender struct { - contentTypeConf map[int32]config.NotificationConf + contentTypeConf map[int32]config.NotificationConfig sessionTypeConf map[int32]int32 sendMsg func(ctx context.Context, req *msg.SendMsgReq) (*msg.SendMsgResp, error) getUserInfo func(ctx context.Context, userID string) (*sdkws.UserInfo, error)