Skip to content

Commit 2109769

Browse files
committed
fetch group on joined
1 parent baa9d59 commit 2109769

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lagrange.Core/Internal/Logic/Processors/GroupMemberIncreaseProcessor.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ internal override async ValueTask<bool> Handle(BotContext context, MsgType msgTy
3737

3838
if (@event != null)
3939
{
40+
if (@event.MemberUin == context.BotUin) // Bot itself joined the group, resolve group info first
41+
{
42+
_ = await context.CacheContext.GetGroupList(true);
43+
}
44+
4045
context.EventInvoker.PostEvent(@event);
4146
_ = await context.CacheContext.GetMemberList(increase.GroupUin, true);
4247
return true;

0 commit comments

Comments
 (0)