Commit Graph

7536 Commits

Author SHA1 Message Date
sandtechnology
3d6dd03666
Making version section more detailed for user (#1163) 2021-04-04 16:30:06 +08:00
Him188
423665619a Fix docs about whileSelectMessages, close #1160 2021-04-04 15:48:56 +08:00
Him188
de46b0d79e Release version 2.6-M2 2021-04-04 01:19:01 +08:00
Him188
7521e6d17f
Rename RichMessageOrigin to MessageOrigin (#1116)
* Rename `RichMessageOrigin` to `MessageOrigin`

* apiDump

* Change `MessageOrigin.origin` parameter type from `RichMessage` to `SingleMessage`;
Rename `RichMessageKind` to `MessageOriginKind`

* Make MessageOriginKind serializable and update docs

* Ensure binary compatibility with <2.6 and provide migration helpers

* apiDump
2021-04-04 00:31:33 +08:00
Him188
39f6c1680c Fix compiler bug, fix #1136 2021-04-04 00:00:32 +08:00
Him188
caf9eb06ad Fix package name of StrangerImpl 2021-04-03 23:17:00 +08:00
Him188
50e60cc4fe Use system property mirai.unknown.image.type.logging to enable logging on unknown image type, helps #1111 2021-04-03 23:07:41 +08:00
Him188
36742a867f Add util function systemProp 2021-04-03 23:06:15 +08:00
Him188
cccdb3cdf2
Update docs for messages (#1142)
* Update docs for messages

* Update docs for messages

* Update docs for messages

* Update docs for messages

* Update docs/Messages.md

Co-authored-by: Karlatemp <karlatemp@vip.qq.com>

* Update mirai-core-api/src/commonMain/kotlin/message/data/Message.kt

Co-authored-by: Karlatemp <karlatemp@vip.qq.com>

* Update docs for messages

* Update docs for messages

* Revert inappropriate changes

* Fix doc

Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-04-03 22:39:55 +08:00
Him188
ea1f43b9c5
Fast login (#1154)
* wtlogin10

* Fast login Packet Implement (#1125)

* Correct group syncing logic again, Fix #1120

* Implement fast login packet, thanks to MiraiGo

* Delete duplicated tlv

* Refresh Token when exchanging and solve connection dropping issue (#1128)

* Correct group syncing logic again, Fix #1120

* Implement fast login packet, thanks to MiraiGo

* Delete duplicated tlv

* Schedule token exchanging every 10 minutes, solve connection dropping issue

* Refresh Token when exchanging, and correct token expire time

* Remove useless params for doFastLogin

* Fix missed register and tgt update (#1131)

* Correct group syncing logic again, Fix #1120

* Implement fast login packet, thanks to MiraiGo

* Delete duplicated tlv

* Schedule token exchanging every 10 minutes, solve connection dropping issue

* Refresh Token when exchanging, and correct token expire time

* Remove useless params for doFastLogin

* Fix missed register and tgt update

* Add login lock

* Add login lock

* Remove key refresh

* Remove heartbeat period override

* Login: Update tlv and solve constant connection dropping issue (#1150)

* Correct group syncing logic again, Fix #1120

* Implement fast login packet, thanks to MiraiGo

* Delete duplicated tlv

* Schedule token exchanging every 10 minutes, solve connection dropping issue

* Refresh Token when exchanging, and correct token expire time

* Remove useless params for doFastLogin

* Fix missed register and tgt update

* Update tlv, add tlv11d and tlv11a decoding

* Add stat heartbeat, solve constant connection dropping issue

* Update apidump for new configuration

* Add comment for statHeartbeatPeriodMillis

* Change old naming

* Add since version

Co-authored-by: Him188 <Him188@mamoe.net>

Co-authored-by: sandtechnology <20417547+sandtechnology@users.noreply.github.com>
2021-04-03 22:31:14 +08:00
Karlatemp
f6fd4de14b
Postpone error reporting in parsing in NewContact (#1147)
* Add `ParseErrorPacket` for postpone error report

* Continue to parse even if an error occurs
2021-04-03 22:17:49 +08:00
Karlatemp
6e914f6941
Fix forward display (#1148) 2021-04-03 22:12:14 +08:00
Him188
f4c1b0af12
Update CONTRIBUTING.md 2021-04-01 22:55:17 +08:00
Him188
30cb70f67f Release version v2.6-M1 2021-03-30 22:14:14 +08:00
Him188
1c486854a8 Fix FileMessage.Key 2021-03-30 21:42:05 +08:00
Him188
6b251b9267 Release version v2.6-M1 2021-03-30 12:39:45 +08:00
Him188
3f807353b3 Remove UNSUPPORTED_MERGED_MESSAGE_PLAIN, fix #1119 2021-03-30 12:16:08 +08:00
Him188
cea4d23d7f Create OtherClientInfo from known information, fix #1109 2021-03-30 12:14:20 +08:00
Him188
fc70bb9ed8 Remove type definition to help compatibility with Kotlin 1.5 2021-03-29 23:59:03 +08:00
Him188
a560e93838 Add gson dependency for gradle plugin 2021-03-29 23:57:16 +08:00
Him188
41d0c16ad1
New Project Wizard (#320)
* Add project wizard

* Add OptionsStep

* Template application fundamentals

* Extract BuildSystemType from BuildSystemStep to top-level

* Complete templates

* Fix build

* Fix build

* Support Java and Groovy, fix strings in Kotlin templates

* Add template for gradle.properties

* Disable `depends on` field

* Fix Java template

* Fix build

* Update tools/compiler-annotations/src/CheckerConstants.kt

Co-authored-by: Karlatemp <karlatemp@vip.qq.com>

* Update tools/intellij-plugin/src/creator/steps/ValidationUtil.kt

Co-authored-by: Karlatemp <karlatemp@vip.qq.com>

Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-03-29 18:17:50 +08:00
sandtechnology
70bbfcf786
Correct group syncing logic again, Fix #1120 (#1123) 2021-03-28 22:48:38 +08:00
Him188
de170325c9 Merge branch 'fix_1118_empty_listFiles' into dev 2021-03-28 19:32:44 +08:00
Him188
0a0caeeb3a ConfigurePluginMainServiceFix and PluginMainServiceNotConfiguredInspection: support multiline service files 2021-03-28 17:34:00 +08:00
Him188
75d9805db1 Fix BuildMiraiPluginTask 2021-03-28 12:28:52 +08:00
Him188
4efb21da05
Update CONTRIBUTING.md 2021-03-28 00:29:38 +08:00
Him188
b6417ac336 Fix doc on ConsoleInput 2021-03-27 22:40:42 +08:00
Him188
3fbbba9cfa Revert ".gitignore: Change build/ to /build/"
This reverts commit 7ce4696d
2021-03-27 20:23:32 +08:00
Him188
7ce4696de6 .gitignore: Change build/ to /build/ 2021-03-27 19:30:17 +08:00
Him188
30b38500c6 Merge remote-tracking branch 'console/master' 2021-03-27 19:28:12 +08:00
Him188
8b7dc78a5d Improve BuildMiraiPluginTask 2021-03-27 19:27:30 +08:00
Him188
c8e0eccf67 2.5.1-dev-1 2021-03-27 15:41:09 +08:00
Him188
174ca300d6 Fix empty listFiles for child directories, fix #1118 2021-03-27 15:39:46 +08:00
mzdluo123
512895ad9b
add MiraiForum url to greeting 2021-03-27 14:52:42 +08:00
Him188
430c2c59ad
Support UnsupportedMessage (#1112)
* Support UnsupportedMessage

* Fix serialize

* `UnsupportedMessage.contentToString`: use `struct.contentHashCode()`

Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-03-26 23:54:17 +08:00
Him188
24587503a3 Merge remote-tracking branch 'mirai/dev' into dev 2021-03-26 20:44:07 +08:00
Him188
0f41c225f9 Move SerialDescriptor.copy to mirai-core-utils 2021-03-26 20:42:51 +08:00
Him188
c47535289a
Merge pull request #1115 from mamoe/transform_special_messages
Move Dice to MarketFace conversion from `SendMessageHandler.transformSpecialMessages`...
2021-03-26 20:36:21 +08:00
Him188
8d25025d24 Support decode Dice sent by TIM PC clients 2021-03-26 20:34:32 +08:00
Him188
efc6eda312 Move Dice to MarketFace conversion from SendMessageHandler.transformSpecialMessages to MessageChain.toRichTextElems to enable conversions for ForwardMessage 2021-03-26 19:54:11 +08:00
Him188
4308c59da2
Use device.json by default for AutoLoginConfig (#312) 2021-03-26 19:00:42 +08:00
Karlatemp
3ae575e9eb
Ensure that the PermissionService is loaded correctly (#307)
* Ensure that the PermissionService is loaded correctly

* Update backend/mirai-console/src/extensions/PermissionServiceProvider.kt

* Mark `@ConsoleExperimentalApi`

Co-authored-by: Him188 <Him188@mamoe.net>
2021-03-26 19:00:25 +08:00
Him188
0723c5c568 Release version 2.5.0 2021-03-26 11:48:20 +08:00
Him188
faebbde94c Do not publish on release created 2021-03-26 10:46:01 +08:00
Him188
5dc1c90ac4 Release version 2.5.0 2021-03-26 10:42:42 +08:00
Him188
eccb92a78d Publish on tagged v* 2021-03-26 10:40:08 +08:00
Him188
3ae44a3b8e Add docs for FileMessage 2021-03-26 10:24:50 +08:00
Him188
aa1aaf1ada Update serialization version to 1.1.0
Fix unresolved reference on Maven sync due to kotlin-stdlib:1.4.30-370
2021-03-26 10:19:54 +08:00
Him188
fef0b4220a Merge remote-tracking branch 'mirai/dev' into dev 2021-03-26 10:07:13 +08:00
Him188
7ed8502e68 Fix docs on IMirai.FileCacheStrategy 2021-03-26 10:06:48 +08:00