This repository was archived by the owner on Oct 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 351
[Core][Onebot] Add Summary field to ImageEntity class.
#307
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CrackTC
suggested changes
Apr 12, 2024
Collaborator
CrackTC
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Roughly tested and it looks good, forgive these minor changes I've requested
Lagrange.OneBot/Core/Operation/Message/GetEssenceMessageListOperation.cs
Outdated
Show resolved
Hide resolved
1a7b57e to
b1a4bbf
Compare
CrackTC
approved these changes
Apr 12, 2024
8f96f7b to
c6824a9
Compare
Fix a stupid mistake. Elevate ForwardWebSocket's heartbeat judgment to external Remove duplicated ConnectLifecycleMate sending. Improved heartbeat delay task when HeartBeatInterval < stopwatch.Elapsed. better heartbeat opt-out handling for rws and httppost
Co-authored-by: CrackTC <[email protected]>
…eration.cs Co-authored-by: CrackTC <[email protected]>
Co-authored-by: CrackTC <[email protected]>
c6824a9 to
4d910de
Compare
Contributor
Author
|
Sorry, some of the previous commits were not signed, so I had to re-commit them all to sign them. |
4 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR parses the
summaryfield ofNotOnlineImageandCustomFace. This enables distinguishing between a regular image and a custom emoticon.群聊中的图片会被当作
CustomFace解析,私聊中的图片则会被当作NotOnlineImage解析。当图片为表情包时,消息的Summary会被解析为'[动画表情]',否则QQ服务端就会发送空的Summary字段,既为''(空字符串)。ImageEntity的Summary保留了原始解析出来的数据。为了更加符合QQ客户端实际显示预览的情况,
ImageEntity的ToPreviewText()方法在Summary不为null且不为''时返回Summary,否则返回'[图片]'。