Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

Commit 6b6838c

Browse files
authored
[Core] Fix the parsing of group invitation event (#885)
1 parent 625e9b2 commit 6b6838c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Lagrange.Core/Internal/Context/Logic/Implementation/MessagingLogic.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,16 @@ public override async Task Incoming(ProtocolEvent e)
7171
var chain = push.Chain;
7272

7373
// Intercept group invitation
74-
if (chain.Count == 1 && chain[0] is LightAppEntity { AppName: "com.tencent.qun.invite" } app)
74+
if (chain.Count == 1 && chain[0] is LightAppEntity
75+
{
76+
AppName: "com.tencent.qun.invite" or "com.tencent.tuwen.lua"
77+
} app)
7578
{
7679
using var document = JsonDocument.Parse(app.Payload);
7780
var root = document.RootElement;
7881

7982
string url = root.GetProperty("meta").GetProperty("news").GetProperty("jumpUrl").GetString()
80-
?? throw new Exception("sb tx! Is this 'com.tencent.qun.invite'?");
83+
?? throw new Exception("sb tx! Is this 'com.tencent.qun.invite' or 'com.tencent.tuwen.lua'?");
8184
var query = HttpUtility.ParseQueryString(new Uri(url).Query);
8285
uint groupUin = uint.Parse(query["groupcode"]
8386
?? throw new Exception("sb tx! Is this '/group/invite_join'?"));

0 commit comments

Comments
 (0)