Skip to content

Commit fc560c0

Browse files
committed
[Core] remove dupe code
1 parent f9802ec commit fc560c0

5 files changed

Lines changed: 2 additions & 75 deletions

File tree

Lagrange.Core/Common/Entity/BotGroupNotificationType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ namespace Lagrange.Core.Common.Entity;
33
public enum BotGroupNotificationType
44
{
55
Join = 1,
6+
GroupInvite = 2,
67
SetAdmin = 3,
78
KickOther = 6,
89
KickSelf = 7,

Lagrange.Core/Internal/Events/System/SetGroupInviteSelfAcceptEvent.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.

Lagrange.Core/Internal/Logic/OperationLogic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public async Task GroupMemberRename(long groupUin, long targetUin, string name)
5656

5757
public async Task SetGroupInviteSelfAccept(long groupUin, long sequence)
5858
{
59-
await context.EventContext.SendEvent<SetGroupInviteSelfAcceptEventResp>(new SetGroupInviteSelfAcceptEventReq(groupUin, sequence));
59+
await context.EventContext.SendEvent<SetGroupNotificationEventReq>(new SetGroupNotificationEventReq(groupUin, (ulong)sequence, BotGroupNotificationType.GroupInvite, GroupNotificationOperate.Allow, String.Empty));
6060
}
6161

6262
public async Task GroupQuit(long groupUin)

Lagrange.Core/Internal/Packets/Service/Oidb_0x10C8.cs

Lines changed: 0 additions & 26 deletions
This file was deleted.

Lagrange.Core/Internal/Services/System/SetGroupInviteAcceptService.cs

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)