Skip to content

[Core] Add FlashTransfer.UploadFile appId parameter, fix friend image upload#68

Merged
Wesley-Young merged 1 commit into
LagrangeDev:mainfrom
ProgramRipper:fix/friend-image
Sep 26, 2025
Merged

[Core] Add FlashTransfer.UploadFile appId parameter, fix friend image upload#68
Wesley-Young merged 1 commit into
LagrangeDev:mainfrom
ProgramRipper:fix/friend-image

Conversation

@ProgramRipper
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings September 26, 2025 10:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds an appId parameter to the FlashTransfer.UploadFile method and fixes friend image upload functionality by using correct application IDs for different message types.

  • Adds appId parameter to FlashTransfer.UploadFile method to support different file types
  • Updates image upload logic to use proper app IDs (1406 for friend images, 1407 for group images)
  • Improves documentation with comprehensive app ID mapping in comments

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
Lagrange.Core/Message/Entities/ImageEntity.cs Updates FlashTransfer call to include appId parameter and uses IsGroup property
Lagrange.Core/Internal/Packets/Service/FlashTransferUploadReq.cs Adds comprehensive comment documenting different appId values for various file types
Lagrange.Core/Internal/Context/FlashTransferContext.cs Adds appId parameter to UploadFile and UploadChunk methods, removes hardcoded value

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread Lagrange.Core/Message/Entities/ImageEntity.cs
@Wesley-Young Wesley-Young merged commit 92a0cb4 into LagrangeDev:main Sep 26, 2025
9 checks passed
@ProgramRipper ProgramRipper deleted the fix/friend-image branch September 26, 2025 10:53
@ProgramRipper ProgramRipper restored the fix/friend-image branch December 27, 2025 02:24
@ProgramRipper ProgramRipper deleted the fix/friend-image branch December 27, 2025 02:24
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.

4 participants