Skip to content

[Core] Implemented FetchGroupNotifications and its required APIs#33

Merged
NoirHare merged 1 commit into
LagrangeDev:mainfrom
A-n-o-n-0:main
Aug 14, 2025
Merged

[Core] Implemented FetchGroupNotifications and its required APIs#33
NoirHare merged 1 commit into
LagrangeDev:mainfrom
A-n-o-n-0:main

Conversation

@A-n-o-n-0
Copy link
Copy Markdown
Contributor

@A-n-o-n-0 A-n-o-n-0 commented Aug 13, 2025

Thanks for the review. Please feel free to point out any inaccuracies.

Specific modifications:

  1. Implemented FetchStranger via uin and uid
  2. Implemented FetchGroupNotifications
  3. Extended BotStranger
  4. Make package processing asynchronous In order to continue sending packets while parsing the packet
  5. Created a cache for BotStranger

The modification in ClientListener.cs was necessitated by the transition of the packet handler to asynchronous processing (SsoPacket.cs), requiring packet copying to prevent modification during subsequent packet handling.

This shift to asynchronous processing in SsoPacket.cs was implemented because the logic in FetchGroupNotificationsService.cs requires sending additional packets during packet processing. Crucially, since the ManualResetValueTaskSourceCore<> operates synchronously by default, synchronous execution would cause the sent packets to be unable to receive responses due to Socket blocking, resulting in a deadlock from mutual blocking.

In BotGroupNotificationBase.cs, while utilizing concrete implementation classes to differentiate notification types, a variable indicating the type is still stored to facilitate subsequent notification processing. This design enables rapid configuration during handling procedures where type codes are required.

1. Implemented FetchStranger via uin and uid
2. Implemented FetchGroupNotifications
3. Extended BotStranger
4. Make package processing asynchronous
   In order to continue sending packets while parsing the packet
5. Created a cache for BotStranger
@NoirHare NoirHare changed the title [All] Implemented FetchGroupNotifications and its required APIs [Core] Implemented FetchGroupNotifications and its required APIs Aug 14, 2025
@NoirHare NoirHare requested a review from Linwenxuan04 August 14, 2025 05:44
@NoirHare NoirHare merged commit 0efa433 into LagrangeDev:main Aug 14, 2025
3 of 9 checks passed
Bemly pushed a commit to Bemly/CharonAnchor that referenced this pull request May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants