Commit Graph

3154 Commits

Author SHA1 Message Date
ヒューマンワーキン
a0d9047b7b
修复 dumpTlvMap 不正确的返回值 (#2557)
* 修复 dumpTlvMap 不正确的返回值

* Update WtLogin.kt

* Update WtLogin.kt

注意力涣散.jpg
2023-03-08 11:58:24 +00:00
sandtechnology
01d2851af1
Update android protocol version (#2551)
Thanks to MiraiGo.
Fixes #2545,#2492,#2453
2023-03-07 12:15:20 +00:00
Karlatemp
4d9f6e88f9
[core] Fix polymorphic serialization 2023-02-20 22:09:39 +08:00
cssxsh
bec756e0bf
[core] fix: announcements cookie (#2512) 2023-02-19 11:50:02 +00:00
sandtechnology
f4667fe1ef
[core] Handle TimeoutCancellationException when resuming connection. Fix #2504, fix #2488 (#2505)
* #2504,#2488 handle TimeoutCancellationException when resuming connection

* Remove unnecessary code and fix wording

* Use yield() instead of delay

* Use yield() instead of delay
2023-02-19 11:49:41 +00:00
Karlatemp
e686a23f40
[core] Fix offline message source quote replying; fix #2501 2023-02-16 23:06:23 +08:00
Him188
940e76aa95
[core] Fix AbstractProcessorPipeline.registerBefore, do addFirst instead of add 2023-01-29 08:33:54 +00:00
sandtechnology
cc7f35519e
Update login protocol (#2433)
* Update login protocol
Still need testing

* Turn off debug option and make t547 null when failed

* Fix wrong convert method and improve tips

* Remove unused part and improve tips

* Fix typo

* Inline resultStatus for performance

* Rename pow to PoW, the name should be "Proof of Work"

* Add shadow and deps-test for kt-bignum

* Try to fix deps-test

* Fix deps-test again
2023-01-18 17:41:21 +08:00
sandtechnology
53f1971d94
[core] Generate and handle tgtgtKey correctly, fix #2418 (#2419)
* Generate and handle tgtgtKey correctly, fix #2418

* Optimize the code readability of WtLogin9

* Add utility method to write t106 with A1
2023-01-13 23:36:10 +00:00
sandtechnology
e7bcb190a7
Update ANDROID_PHONE and ANDROID_PAD protocol (#2423)
Updated From MiraiGo:a30750849d
2023-01-13 12:28:28 +00:00
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
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
微莹·纤绫
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
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
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
cssxsh
60dd4b5be6
[core] Add friendGroupId default value (#2403)
Fixes https://mirai.mamoe.net/topic/1895
2022-12-24 14:22:14 +00: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
Karlatemp
e65f4e65c8
[core] Improve error message of NormalMember.modifyAdmin(); #2370 2022-12-03 19:59:48 +08:00
Karlatemp
b5fcbe99fb
[core] Improve error message of NormalMember.modifyAdmin(); #2370 2022-12-03 19:30:15 +08:00
Him188
60bbcf6e2c
[core] Revert "Review atomic calls and enable atomicfu compiler. Close #2315", due to atomicfu does not behave correctly when mirai-console depends on mirai-core-utils. Fixes #2329.
This commit reverts part of commit 564a7ce8f8
2022-11-27 20:08:21 +00:00
Him188
3360347ca2 [build] Fix dependency exclusion for builds when IDEA_ACTIVE 2022-11-27 15:25:18 +00:00
Him188
76cee371a9 [build] Register native binaries for mirai-core only to speed up builds 2022-11-27 15:25:18 +00:00
Him188
c0ccdbe9d3 [build] Rewrite shadow relocation 2022-11-27 15:25:18 +00:00
Karlatemp
372c25024c
[core] Fix temporary buffer acquiring; Fix #2309 2022-11-18 20:41:53 +08:00
Karlatemp
b38687a3ea
[core] Temporary disable Reconnect without slider request; Reduce device banning caused by loginsolver error 2022-11-15 18:20:33 +08:00
Karlatemp
90f2fee243
[core] Don't reconnect if error in onSolveSliderCaptcha 2022-11-15 18:18:57 +08:00
Karlatemp
85bf607b60
[core] Include login solver information in UnsupportedSliderCaptchaException 2022-11-15 18:15:36 +08:00
Karlatemp
bbf3c09ae4
[core/debug] Fix build 2022-11-14 06:02:46 +08:00
Karlatemp
fe70187881
[core/debug] Add utils for debug running; Update docs for launch debug run 2022-11-14 00:33:07 +08:00
Karlatemp
dd143890cd
[core] Fix bad atomic 2022-11-08 12:41:02 +08:00
cssxsh
1c79da0f38
[core] feat: Announcement confirmed member api (#2255)
* feat: Announcement confirmed

* add: native

* add: todo

* fix: dump
2022-11-03 10:42:21 +00:00
Him188
f24ca9628f
[core] Optimize array expansions 2022-11-02 19:29:02 +00:00
Him188
9613c9b7e5
[core] Add more information on LIMITED_MESSAGING 2022-10-31 10:44:13 +00:00
Him188
573f08955c
[core] Show specific reason for error 46 while sending message. Close #2127 2022-10-31 10:41:06 +00:00
Him188
7e84330262
[core] Use netty-handler instead of netty-all to reduce size 2022-10-29 13:11:30 +01:00
Him188
564a7ce8f8
[core] Review atomic calls and enable atomicfu compiler. Close #2315 2022-10-29 13:04:37 +01:00
Him188
ab8e53fc76
[core] Suppress NOTHING_TO_INLINE warnings for AtomicIntSeq 2022-10-29 11:57:01 +01:00