Commit Graph

5790 Commits

Author SHA1 Message Date
Karlatemp
89dddcf843
Fix the logger name of ExternalResourceLeakObserver is null 2021-09-12 11:16:08 +08:00
sandtechnology
394012ec3e
Support group disband kind decoding (#1525)
* Support group disband kind decoding

* Update mirai-core-api/src/commonMain/kotlin/event/events/group.kt

* Add useless comment for triggering build

Co-authored-by: Him188 <Him188@mamoe.net>
2021-09-11 14:29:39 +08:00
Karlatemp
b451dfaf96
Fix MessageChainBuilder.clear not clearing caches; fix #1538 2021-09-10 12:57:01 +08:00
Karlatemp
16ad3bc042
Fix MessageChainBuilder.copy not copying caches 2021-09-10 12:57:00 +08:00
sandtechnology
25c489d238
#1536 Try to fix image sending error 2021-09-09 17:48:40 +08:00
Karlatemp
6cd7fa9709
#1509 try to fix bot is closed manually 2021-09-05 22:39:54 +08:00
RainChan
93fad9ee1c
#1509 try to fix bot is closed manually 2021-09-05 17:23:50 +08:00
Him188
b34dec29ca Fix serverTime diff: use currentTimeSeconds 2021-09-05 14:05:33 +08:00
Him188
2247543f65 Fix serverTime diff: ignore serverTime when it is zero 2021-09-05 13:57:58 +08:00
Elaina
103dad3f69
将 Graia Framework (v4) 更换为 Avilla (v5) (#1514)
* Iterate a big version for Graia, to "Avilla"

* Update README.md

* Update README.md
2021-09-05 00:09:10 +08:00
Karlatemp
881fbd7062 Add doc of mirai.event.show.verbose.events 2021-09-05 00:06:37 +08:00
Karlatemp
7fe402695e Hide event logs that are too verbose
Co-authored-by: Him188 <Him188@mamoe.net>
2021-09-05 00:06:37 +08:00
Him188
238ec52eea Adapt for server time difference, let MessageSource.time refer to server time. Fixes 1519 2021-09-04 21:31:10 +08:00
Him188
5188d88483 Improve CheckableResponse 2021-09-04 19:36:16 +08:00
Him188
d727bae9d0 Add Either.left and Either.right 2021-09-02 16:03:32 +08:00
Him188
a8acc4f4d9 Add androidMain/src/package.kt 2021-09-02 13:18:59 +08:00
Him188
7cef6277cd Rename ECDHJvmDesktop.kt in androidMain to ECDHAndroid.kt 2021-09-02 13:18:24 +08:00
Him188
c57026d246 Update apiDump for missed changed in previous commit (#1392: Introduce auto close for ExternalResource) 2021-09-01 20:09:03 +08:00
Him188
4d0afc27dc Introduce auto close for ExternalResource 2021-09-01 20:05:05 +08:00
Him188
f239192677 Add trySafely 2021-09-01 20:05:05 +08:00
Him188
25ddb41544 Deprecate EmptyMessageChain.serializer() for stability concerns 2021-09-01 19:29:56 +08:00
Him188
4e021d3b3e Fix cache service failure caused by users named "null" 2021-09-01 19:28:48 +08:00
Him188
033d637dcb update console ref 2021-09-01 19:27:53 +08:00
Him188
66999aadaf Migrate to Kotlin 1.5.30 and review dependencies:
- Remove redundant atomicfu-common
- Do not expose kotlinx-io and atomicfu
2021-09-01 18:52:36 +08:00
Him188
081e5d9b04 Use String constructor from Kotlin stdlib 2021-09-01 14:37:47 +08:00
Karlatemp
8271fa9a82
Ensure SimpleListenerHost.handleException is called; Cancel registered listeners in SimpleListenerHost when it's completed (#1490)
* Improve `SimpleListenerHost` registration

* Comments
2021-09-01 14:00:42 +08:00
Karlatemp
88b66d7863
Decode packets in netty event loop group (#1500)
* Decode packets in netty event loop group

* Update mirai-core/src/commonTest/kotlin/network/framework/AbstractNettyNHTest.kt

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

Co-authored-by: Him188 <Him188@mamoe.net>
2021-09-01 14:00:27 +08:00
Him188
4d76aa82b0 Fix FriendAvatarChangedEvent
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-09-01 13:55:39 +08:00
Him188
de07e0eeb8 Use getGroupByUinOrCodeOrFail in OnlineMessageSourceFromTempImpl for tests 2021-09-01 13:55:39 +08:00
Him188
15ad3fbda6 Add BotInvitedJoinTest 2021-09-01 13:55:39 +08:00
Him188
c36d1b15f4 Remove more verbose default values in ConstructorCallCodegen 2021-09-01 13:55:39 +08:00
Him188
ec9ad7f0f1 Support nested structures in desensitizer 2021-09-01 13:55:39 +08:00
Him188
82719d6018 Ignore NewContact.SystemMsgNewGroup, subType=5, groupMsgType=16, fix #1467 2021-09-01 13:55:39 +08:00
Him188
f38089be78 Ignore NewContact.SystemMsgNewGroup, subType=0, groupMsgType=8, fix #1388 2021-09-01 13:55:39 +08:00
Him188
0ccb9c94e7 Handle possible MemberLeaveEvent.Kick for NewContact.SystemMsgNewGroup, subType=5, groupMsgType=6, fix #1171 2021-09-01 13:55:39 +08:00
Him188
cd8665b440 Add comments for kick event 2021-09-01 13:55:39 +08:00
Him188
1f2ff04c45 Get group by uin in OnlineMessageSourceFromTempImpl, fix the problem that some temp messages could not be received, fix #1410 2021-09-01 13:55:39 +08:00
Him188
9247c8b0fd Fix RecordingNoticeProcessorTest 2021-09-01 13:55:39 +08:00
Him188
86b3bbf3fb Add test for message events 2021-09-01 13:55:39 +08:00
Him188
4b4e7e1dcc Fix MemberJoinEvent processing and add MemberJoinTest 2021-09-01 13:55:39 +08:00
Him188
2cc6e0bbd8 Use yamlkt 0.10.2 2021-09-01 13:55:39 +08:00
Him188
f51e721649 Fix group transfer and retrieve, add tests for notice events:
- GroupRetrieveTest
- GroupTransferTest
- MemberAdminChangeTest
- MemberQuitTest
- MuteTest
2021-09-01 13:55:39 +08:00
Him188
76e2b6c64c Redesign packet recording 2021-09-01 13:55:39 +08:00
Him188
c4939a7446 Add ConstructorCallCodegen 2021-09-01 13:55:39 +08:00
Him188
f31f525343 Add util Array<Byte>.toUHexString 2021-09-01 13:55:39 +08:00
Him188
a1dba40f80 Add util CollectionDiff 2021-09-01 13:55:39 +08:00
Him188
f1c2393434 Add util readResource 2021-09-01 13:55:39 +08:00
Him188
f40659b1c7 Make TypeSafeMap() returns TypeSafeMap.EMPTY 2021-09-01 13:55:39 +08:00
Him188
1ffa9eb957 Add toString for TypeSafeMap implementations 2021-09-01 13:55:39 +08:00
Him188
49c6734722 Fix ParseErrorPacket not logged 2021-09-01 13:55:39 +08:00