diff --git a/internal/rpc/msg/group_notification.go b/internal/rpc/msg/group_notification.go index b24789e23..8d18657a2 100644 --- a/internal/rpc/msg/group_notification.go +++ b/internal/rpc/msg/group_notification.go @@ -183,7 +183,16 @@ func groupNotification(contentType int32, m proto.Message, sendID, groupID, recv n.SendID = sendID if groupID != "" { n.RecvID = groupID - n.SessionType = constant.GroupChatType + group, err := imdb.GetGroupInfoByGroupID(groupID) + if err != nil { + log.NewError(operationID, "GetGroupInfoByGroupID failed ", err.Error(), groupID) + } + switch group.GroupType { + case constant.NormalGroup: + n.SessionType = constant.GroupChatType + default: + n.SessionType = constant.SuperGroupChatType + } } else { n.RecvID = recvUserID n.SessionType = constant.SingleChatType diff --git a/pkg/common/constant/constant.go b/pkg/common/constant/constant.go index fdb1dcb83..ff857ef5c 100644 --- a/pkg/common/constant/constant.go +++ b/pkg/common/constant/constant.go @@ -161,9 +161,9 @@ const ( GroupStatusMuted = 3 //GroupType - NormalGroup = 0 - SuperGroup = 1 - DepartmentGroup = 2 + NormalGroup = 0 + SuperGroup = 1 + WorkingGroup = 2 GroupBaned = 3 GroupBanPrivateChat = 4