Commit Graph

8256 Commits

Author SHA1 Message Date
Him188
f04c623658 [core] Implement a more efficient algorithm to fetch roaming messages for group:
- Added `RoamingMessagesImplGroup`.
- Dump API changes for Group RoamingMessages.
- [mock] Fix MockRoamingMessages missing MessageSource
- [core] Convert hierarchical TimeBasedRoamingMessagesImpl to common, to reduce code complexity
2023-01-05 02:33:27 +00:00
Him188
db601928ea [core] Rename CommonRoamingMessagesImpl to TimeBasedRoamingMessagesImpl. Extract RoamingMessagesImplFriend 2023-01-05 02:33:27 +00:00
StageGuard
2d0b4d470a [core] Proposal implementation of RoamingSupported for Group 2023-01-05 02:33:27 +00:00
Him188
3c580eead4 [core] Add default implementation for RoamingMessages.getMessagesStream 2023-01-05 02:33:27 +00:00
StageGuard
5a73c75554 [core] decode MessageSvc.PbGetGroupMsg and OidbSvc.0x88d_0 2023-01-05 02:33:27 +00:00
cssxsh
2cffb7a4a4
[core] feat: RockPaperScissors (#2220)
* [core] feat: RockPaperScissors

Co-authored-by: Karlatemp <kar@kasukusakura.com>

* docs update

* rename `eliminate` to `eliminates`

Co-authored-by: Karlatemp <kar@kasukusakura.com>
2023-01-03 10:00:32 +08:00
Him188
eea2ef509d
[core] Delete cache file if exception occurred while loading GroupMemberListCache. Fix #2399 2023-01-02 16:13:01 +00:00
Karlatemp
62ae2ac03c
[console] Create PluginOnDisableCalledOnlyOnceTest test; Fix tests 2023-01-02 23:43:33 +08:00
Karlatemp
6b1aa9c80b
[console] Fix JvmPlugin disabling multiple times; Introduce JvmPlugin status 2023-01-02 23:43:33 +08:00
Karlatemp
2f759c199a
[console] Fix plugin disabling order control 2023-01-02 23:43:32 +08:00
Karlatemp
b59c7336d0
[console] Make JvmPluginLoader a child job of PluginManager 2023-01-02 23:43:32 +08:00
微莹·纤绫
553ea9abbc
[core] Introduce CacheValidator for validating caches (#2388)
* [core] Export DeviceInfo.serializer() to mirai-core

* [core] Introduce CacheValidator for validating caches
2023-01-02 15:39:36 +00:00
Him188
6365e23f2c
[core] Change StdoutLogger color for WARNING. Fix #2336.
Commit 28030dfb05 fixed this problem for PlatformLogger
2022-12-27 17:54:34 +00:00
Him188
38737a473a
[mock] Remove MockConsoleImplementation.createLogger because it had been removed in its super class
This commit fixes 7908edb57b
2022-12-27 17:50:41 +00:00
Him188
479fa773f5
[mock] Do not broadcast GroupEntranceAnnouncementChangeEvent because mirai-core does not do so.
This commit fixes 7908edb57b
2022-12-27 17:50:06 +00:00
Him188
bc6032f2e4
[mock] Suppress deprecation error for GroupEntranceAnnouncementChangeEvent in MockAnnouncementsImpl.mockPublish.
This commit fixes 7908edb57b
2022-12-27 17:44:00 +00:00
Him188
0a7df909ca
[core] AbstractRealNetworkHandlerTest: close bot after each test only if bot was created 2022-12-27 17:39:46 +00:00
Him188
e3e71e1d1f
[core] Do logout only if firstLoginSucceed 2022-12-27 17:39:46 +00:00
Him188
04b16fe2e4
[core] Ensure Bot.login always show actual login cause whenever a failure in Bot.close happens 2022-12-27 17:29:26 +00:00
Him188
2252683cee
[core] Ensure Bot's CoroutineScope is always cancelled on Bot.close if network.close threw an exception 2022-12-27 17:28:52 +00:00
Him188
38162db477
[core] Add test rethrow exception caught during Bot_login, helps #2338 2022-12-27 16:54:05 +00:00
Him188
2accabef9e
[core] Implement correct TlvMap dump for unrecognized login errors 2022-12-27 16:29:42 +00:00
Him188
0a60535d46
[console] Ignore APIs marked with @ExperimentalCommandDescriptors in ABI compatibility checks 2022-12-27 16:01:03 +00:00
Him188
35866143f8
[build] Add IDEA Run Configuration: Dump API Changes for mirai-console-frontend-base 2022-12-27 15:54:31 +00:00
Him188
7908edb57b
[core+console] Raise deprecation level for 2.14, API including:
- EventChannel.asChannel
- (internal) syncFromEventImpl
- EmptyMessageChain
- GroupEntranceAnnouncementChangeEvent
- MiraiConsole.createLogger
- SingletonExtensionPoint
2022-12-27 15:53:12 +00:00
Him188
76a70f596f
[core] Raise deprecation level for RemoteFile to ERROR (for v2.14) 2022-12-27 14:34:41 +00:00
Him188
c2611dda94
[idea] Change mirai-console-intellij version to 223-$project-172-1 2022-12-27 14:04:19 +00:00
Karlatemp
a3ec557fe7
[mock] Add doc about disk allocation 2022-12-25 00:24:18 +08:00
Karlatemp
d720a9f315
[mock] Fix a bad logic 2022-12-24 23:38:01 +08:00
Karlatemp
c957d008fb
[mock] Fix image multi-uploading; fix #2401 2022-12-24 23:29:46 +08:00
cssxsh
60dd4b5be6
[core] Add friendGroupId default value (#2403)
Fixes https://mirai.mamoe.net/topic/1895
2022-12-24 14:22:14 +00:00
Him188
eb0891fe24
[idea] Support IDEA 2022.3 2022-12-22 13:27:45 +00:00
Him188
4545489eef
[idea] Bump IDEA and kotlin-idea version to 2022.3 2022-12-22 13:27:44 +00:00
Karlatemp
a3f9755e8e
[console] Disable network log in testing 2022-12-18 22:36:13 +08:00
Him188
d5055316e7
[build] Fix worflow 'Check Publishing' unncessary checking to pull_request 2022-12-17 22:40:08 +00:00
Karlatemp
108ef3156a [core/all] include slf4j-api 2.0 in mirai-core-all 2022-12-17 20:33:33 +00:00
Karlatemp
e5a48566df [console/logging] Fix test naming 2022-12-17 20:33:33 +00:00
Karlatemp
46cd06d261 [console/logging] Fix typo fix nameing 2022-12-17 20:33:33 +00:00
Karlatemp
a42efdb93d [core/logging] Dump logback to 1.3.4 2022-12-17 20:33:33 +00:00
Karlatemp
1844d19602 [core/logging] Bind slf4j to 2.x; Bump log4j to 2.19.0 2022-12-17 20:33:33 +00:00
Karlatemp
6c295723db [console/logging] slf4j binding support 2022-12-17 20:33:33 +00:00
Karlatemp
7537e29b0e [console/logging] Always load LoggerConfig; Add LoggerConfig.Binding settings 2022-12-17 20:33:33 +00:00
Karlatemp
8a07308a56 [console/logging] Introduce LoggerControlState for optimize performance 2022-12-17 20:33:33 +00:00
Karlatemp
4962f1907e
[ci] Try to fix snapshot publishing 2022-12-15 12:37:09 +08:00
Karlatemp
d9f3fe616c
[core] Fix ForwardMessage rendering on iOS; fix #1575 2022-12-15 00:22:45 +08:00
Karlatemp
3abef93fd8
[core] Fix jceData of MessageSource from ForwardMessage; fix #2342 2022-12-11 22:29:10 +08:00
Karlatemp
c77ed79b12
[core] Encode html entities for forward message; fix #2241 2022-12-11 22:26:06 +08:00
Karlatemp
c52e99dd87
[core] Include more details in error message to help debug. 2022-12-08 23:44:30 +08:00
Him188
d655af2c0b
[docs] Add release note for 2.13.2 2022-12-04 14:52:08 +00:00
Him188
9397f961d0
[docs] Add release note for 2.13.1 2022-12-04 14:52:05 +00:00