From 1ea38e6b20c0bbcf9e220db7e70657988a993b17 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Tue, 19 Apr 2022 18:46:02 +0800 Subject: [PATCH] OrganizationChangedNotification --- cmd/Open-IM-SDK-Core | 2 +- config/config.yaml | 14 ++++++++++++++ internal/rpc/msg/send_msg.go | 16 ++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/cmd/Open-IM-SDK-Core b/cmd/Open-IM-SDK-Core index fd87b4bfc..539290887 160000 --- a/cmd/Open-IM-SDK-Core +++ b/cmd/Open-IM-SDK-Core @@ -1 +1 @@ -Subproject commit fd87b4bfc3ee7e9f4c50140b884eb4505d00bc44 +Subproject commit 539290887aff41515b291b7ecf174af25887f870 diff --git a/config/config.yaml b/config/config.yaml index dae8f7a2f..2aeee9caf 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -446,6 +446,20 @@ notification: tips: "group member info set" + organizationChanged: + conversation: + reliabilityLevel: 2 + unreadCount: false + offlinePush: + switch: false + title: "groupMemberInfoSet title" + desc: "groupMemberInfoSet desc" + ext: "groupMemberInfoSet ext" + defaultTips: + tips: "group member info set" + + + #############################friend################################# friendApplicationAdded: diff --git a/internal/rpc/msg/send_msg.go b/internal/rpc/msg/send_msg.go index 70a8650dd..74d0e6ac7 100644 --- a/internal/rpc/msg/send_msg.go +++ b/internal/rpc/msg/send_msg.go @@ -563,6 +563,22 @@ func Notification(n *NotificationMsg) { reliabilityLevel = config.Config.Notification.GroupMemberCancelMuted.Conversation.ReliabilityLevel unReadCount = config.Config.Notification.GroupMemberCancelMuted.Conversation.UnreadCount + case constant.GroupMemberInfoSetNotification: + pushSwitch = config.Config.Notification.GroupMemberInfoSet.OfflinePush.PushSwitch + title = config.Config.Notification.GroupMemberInfoSet.OfflinePush.Title + desc = config.Config.Notification.GroupMemberInfoSet.OfflinePush.Desc + ex = config.Config.Notification.GroupMemberInfoSet.OfflinePush.Ext + reliabilityLevel = config.Config.Notification.GroupMemberInfoSet.Conversation.ReliabilityLevel + unReadCount = config.Config.Notification.GroupMemberInfoSet.Conversation.UnreadCount + + case constant.OrganizationChangedNotification: + pushSwitch = config.Config.Notification.OrganizationChanged.OfflinePush.PushSwitch + title = config.Config.Notification.OrganizationChanged.OfflinePush.Title + desc = config.Config.Notification.OrganizationChanged.OfflinePush.Desc + ex = config.Config.Notification.OrganizationChanged.OfflinePush.Ext + reliabilityLevel = config.Config.Notification.OrganizationChanged.Conversation.ReliabilityLevel + unReadCount = config.Config.Notification.OrganizationChanged.Conversation.UnreadCount + } switch reliabilityLevel { case constant.UnreliableNotification: