Him188
fd5334946a
Rewrite docs for beginners
2021-04-11 22:35:03 +08:00
Him188
6cd45c7746
Release version 2.6-RC
2021-04-10 20:15:22 +08:00
Him188
f41a00c0c2
Update docs on versions
2021-04-10 19:02:14 +08:00
Him188
f3d3130f2d
Support login cache and login without password. close #1158
2021-04-10 18:46:39 +08:00
Him188
455ed6fbeb
Move NormalMember.isMuted
from extension to member function. fix #1037
2021-04-10 12:58:10 +08:00
Him188
3bfd2a274a
Update README.md
2021-04-10 01:36:22 +08:00
Karlatemp
509c0d3d06
Fix mute all not working; Fix #1181
2021-04-09 19:19:03 +08:00
Him188
8d3a4fbf5b
Deprecate RemoteFile.moveTo(String)
for ambiguous behavior ( #1180 )
2021-04-09 18:33:12 +08:00
Color_yr
da2e7f5b47
Add community SDK https://github.com/Coloryr/ColorMirai . close #1172
2021-04-09 12:31:41 +08:00
Him188
f26eebfb05
Revert "Add community SDK https://github.com/Coloryr/ColorMirai . close #1172 "
...
This reverts commit 0bfbca5b
2021-04-09 10:32:10 +08:00
Him188
0bfbca5b4b
Add community SDK https://github.com/Coloryr/ColorMirai . close #1172
2021-04-09 10:30:33 +08:00
Him188
ce95d8fdce
Fix RemoteFile.resolveById, fix #1177
2021-04-09 07:47:51 +08:00
Him188
d4ee81c79a
Fix potential memory leak with struct ByteReadPacket
2021-04-08 22:42:24 +08:00
Karlatemp
0f54e2aa27
Fix https://github.com/mamoe/mirai/pull/1167#discussion_r608537316 ( #1174 )
2021-04-08 22:22:17 +08:00
Him188
e20313636a
Make Group.setEssenceMessage static
2021-04-08 18:17:00 +08:00
Him188
951ddc3138
Declare type explicitly for IDE inference issue
2021-04-08 18:07:21 +08:00
Him188
45c6adf956
Declare type explicitly for IDE inference issue
2021-04-08 13:15:24 +08:00
Him188
344c54531d
Declare type explicitly for IDE inference issue
2021-04-08 13:13:23 +08:00
Him188
7be14f809c
Fix build warnings
2021-04-08 12:44:58 +08:00
Him188
7feeaee1ca
Refining Messages without suspension ( #1167 )
...
* Introduce `RefinableMessage.tryRefine` to refine without suspension.
* Extract `RefinableMessage` to separate file
* Always use `Bot` on `List<MsgComm.Msg>.toMessageChain`
* Introduce `MessageRefiner` and ensure MessageChain refined after transformation. Fix #1156 , fix #1157
* Add basic tests
* Refine forward message contents
* Refine long message contents
* Move refinement from message internals to MiraiImpl public APIs
* Comment out unused `toMessageChainOffline`
* refinement tests part
* refinement tests part
* Full tests and minor internal improv.s
* Fix tests
* Fix compile
2021-04-08 11:59:16 +08:00
Him188
c0d7a90264
Update yamlkt to 0.9.0
2021-04-08 01:48:46 +08:00
Him188
82ec29b311
Make mirai-console compatible with IDEA 2021.1
2021-04-08 01:44:40 +08:00
Bo Zhang
aacdf0df2c
Use Gradle JavaVersion API
2021-04-07 23:39:43 +08:00
Him188
770615f137
Ensure Mirai impl initialized on serialization, fix #1086
2021-04-07 23:28:41 +08:00
Him188
c67d1d111c
Merge remote-tracking branch 'mirai/dev' into dev
2021-04-07 21:50:42 +08:00
Him188
944099a977
Add _MiraiInstance to allow internal instance overrides
2021-04-07 21:49:44 +08:00
Hoshino Tented
a085ab26c8
fix #1155 ( #1170 )
...
* fix #1155
* fix unmute
* add durationSeconds check for mute
* fix stupid code
* fix me
2021-04-07 17:34:45 +08:00
sandtechnology
5d1395a78c
Fix key refresh failed when refresh again and update dumped data ( #1169 )
...
* Fix key refresh failed when logged with fast login
* Update dumped data and remove outdated t511 list
* Fix key refresh again
* Fix naming and support multi bot case
* Remove useless code
* Fix key refresh again, remove useless default value (ksid)
2021-04-07 12:12:13 +08:00
Him188
bb5c85965a
Simple test: MockBot
2021-04-07 00:59:08 +08:00
Him188
e5f0adfd7e
build: update intellijGradlePlugin to 0.7.2 and allow using property flatten.sourceset
to disable flatten sourceSets
2021-04-06 12:10:29 +08:00
Him188
ece455f79e
Unified junit version, update junit to 5.4.2
2021-04-06 00:11:12 +08:00
Him188
620771211e
Merge remote-tracking branch 'mirai/dev' into dev
2021-04-05 23:58:54 +08:00
Him188
f0093a0cca
Fix ignored exceptions in PlatformLogger on Android
2021-04-05 23:58:37 +08:00
Karlatemp
b227f719a2
Fix kt compiler errors ( #1159 )
...
* Fix kt compiler errors
* Revert "Fix compiler bug, fix #1136 "
This reverts commit 39f6c168
* Fix log style
Co-authored-by: Him188 <Him188@mamoe.net>
2021-04-05 22:41:26 +08:00
Him188
45aca5f37d
Add ForwardMessageBuilder.toRawForwardMessage
and make RawForwardMessage
stable ( #1162 )
...
* Add `ForwardMessageBuilder.toRawForwardMessage` and make RawForwardMessage stable.
* apiDump
2021-04-05 22:35:52 +08:00
AdoptOSS
21e8852e0f
buildscript: fix task not found errors when android sdk not available ( #1161 )
...
* buildscript: fix task not found errors when android sdk not available
* fix: this shadowed by run
* cleanup: code style
* improve: avoid breaking index map
2021-04-05 22:35:38 +08:00
Him188
45294e1538
Update to 2.6-M2
2021-04-04 19:26:31 +08:00
Him188
f089ef60a1
Merge remote-tracking branch 'mirai/dev' into dev
2021-04-04 16:31:56 +08:00
Him188
ab56ac4987
Fix docs about selectMessages
, #1160
2021-04-04 16:31:36 +08:00
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
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