Karlatemp
ec5870e0b3
[core] Get group incoming message source raw data directly
2023-03-29 22:53:00 +08:00
Karlatemp
fe14600018
[core] Private quote reply decode
2023-03-29 22:52:59 +08:00
Karlatemp
648997b545
[core] Fix offline message source ids
2023-03-29 22:52:59 +08:00
Karlatemp
1169d7cf57
[core] Fix quote replying; Fix message source time
2023-03-29 22:52:58 +08:00
Karlatemp
e2d7332ac0
[core] Add QRCodeLoginListener.onCompleted
2023-03-27 00:55:54 +08:00
微莹·纤绫
434ef0cc39
Tlv writer ( #2569 )
...
* [core] TlvMapWriter
* [core] bind tlv writing with writer
* [core] Add checking to avoid wrong nest writing
* [core] Drop Int.invoke
* [core] Merge with dev
* [core] Update style
2023-03-26 23:51:03 +08:00
sandtechnology
0f1bddcb24
[core] Fix token not saving after refresh token ( #2590 )
2023-03-25 14:08:20 +00:00
cssxsh
b37fe6c2ed
update: protocol ANDROID_WATCH 2.0.8 ( #2592 )
2023-03-24 19:10:13 +00:00
sandtechnology
baf9ee4bf7
[core] Add missed refresh token logic for OnlinePush.SidTicketExpired ( #2584 )
2023-03-22 03:01:43 +00:00
Him188
c74e9d2858
[build] Make mirai-core AbstractTest
public, and add dependsOnCoreJvmTest
in buildSrc
2023-03-21 18:12:04 +00:00
sandtechnology
7e20883a08
[core] Fix OnlinePush.SidTicketExpired logic ( #2563 )
...
* Fix OnlinePush.SidTicketExpired logic
* Add missed responseCommandName
2023-03-21 15:00:26 +00:00
cssxsh
f4fa2cabf4
[core] feat: essence message setting ( #2314 )
...
* feat: remove essence message
* feat: Essences
* add: share and remove
* fix: impl
* fix: arguments
* feat: image url to image
* add: doc
* fix: doc
* Copyright: 2023
* remove: method removeEssenceMessage
* feat: lazy load source
* add: no parse
* add: sendAndExpect try
* fix: remove throw
* fix: parse IMAGE_MD5_REGEX
2023-03-21 14:53:23 +00:00
cssxsh
c016b822e7
[core] 修复群公告查询已阅读人员列表只能获取前 50 个的问题 ( #2530 )
2023-03-21 14:45:42 +00:00
sandtechnology
28b1032acd
[core] Handle rare case on packet pipeline ( #2450 )
...
* Handle rare case on packet pipeline
Fix #2449 , should help #1603
* Fix and improve tips and improve the readability of code
* Improve wording of tips
Co-authored-by: Him188 <Him188@mamoe.net>
* Change d2Key error type to PROTOCOL_UPDATED
* Reformat code
---------
Co-authored-by: Him188 <Him188@mamoe.net>
2023-03-21 14:43:48 +00:00
NoMathExpectation
64f80949ac
Fixed message sending ignoring modifies via MessagePreSendEvent. ( #2525 )
2023-03-21 13:10:47 +00:00
Him188
427c37e649
[build] Update to Kotlin 1.8.10
2023-03-19 03:18:34 +00:00
StageGuard
78d0b4fd54
QRCode login support & Introduce new authorization factory ( #2502 )
...
* [core] process `wtlogin.trans_emp` to support qrcode login
* [core] fix `wtlogin.trans_emp` protocol
* [core] optimize QRCodeLoginProcessor logic
* [core] fix `wtlogin.trans_emp` outgoing packet
* [core] cancel login when logging a bot which is inconsistent from bot factory
* [core] ignore `flag3` check on ANDROID_WATCH & name `flag1` and `flag2`
* [core] provide default `QRCodeLoginListener` for jvm
* [core] don't catch IllegalStateException in QRCodeLoginProcessor
* [core] Use `LoginSolver.createQRCodeLoginListener()` instead of property; Rename configuration name
* [core] Code improvement
* [core] remove qrcode state lock
* [core] ignore `flag3` when command is `wtlogin.trans_emp` in packet codec
* [core] enable qrcode login for macos
* [core] remove debug property in log
* [core] reformat code
* [core] rename `TransEmpResponse` to `Response`
* [core] assert `flag3Exception` not null first
* [core] remove arg client
* [core] update qrcode login notes
* [core] set custom qrcode size
* [core] Draft BotAuthorization
* [core] make SecretsProtection mpp
* [core] BotAuthorization.byXXX
* [core] Move QRCodeLoginListener to `.auth`
* [core] Protect data of BotAccount
* [core] Add SelectorRequireReconnectException
* [core] Implementation of BotAuthorization
* Revert changes of BotConfiguration
* api dump
* [core] remove passwordMd5 in `BotAccount`
* [mock] Add new bot factory function to mock bot factory
* Delete LoginCommandTest
* [core] Improve QRCode render
* [core] Introduce UnsupportedCaptchaMethodException & UnsupportedQRCodeCaptchaException
* api dump
* update docs
* [core] update `DebugRunHelper`
* [core] add simple block for BotAuthorization
* api dump
* Rename `canDoQRLogin` to `supportsQRLogin`, and specify argument names for MiraiProtocolInternal
* Remove `phoneNumber` parameter from BotAccount
* Make `BotAccount.<init>` with String password parameter TestOnly
* Rename `InconsistentBotException` to `InconsistentBotIdException`
* Rename `QRCodeLoginListener.onStatusChanged` to `QRCodeLoginListener.onStateChanged`
* Rename `BotAuthorizationResult` to `BotAuthResult`
* Rename BotAuthComponent, move internal APIs to internal module
* Logic fixup
* doc update
* QRCodeLoginListener.qrCodeStateUpdateInterval & onIntervalLoop
* console login with BotAuthorization
* update testing
* Update mirai-core-api/src/jvmMain/kotlin/utils/LoginSolver.jvm.kt
* Move AuthControl outside SsoProcessor
* Redesign auth
* Add initialTicket to producerCoroutine
* Revert protocol changes of MACOS
* Fix latch death locking
* Fix CoroutineOnDemandValueScope.receiveOrNull exceptional finish
* Fix exception collecting
* Fix DefaultBotAuthorizationFactory loading
* [core] qrcode login for IPAD protocol
* Revert "[core] qrcode login for IPAD protocol"
This reverts commit c1136a8798
.
---------
Co-authored-by: Karlatemp <kar@kasukusakura.com>
Co-authored-by: Him188 <Him188@mamoe.net>
2023-03-18 13:52:31 +00:00
cssxsh
e5ff458a5d
fix: address as NettyChannelException message ( #2576 )
...
* fix: address as NettyChannelException message
* fix: message
2023-03-16 22:23:42 +08:00
cssxsh
b6b1059107
update: MiraiProtocol IPAD MACOS ( #2575 )
2023-03-15 14:15:34 +00:00
Eritque arcus
3ff2737b3c
Add fallback solution for Services ( #2511 )
...
* add fallback solution for Services
* use castUp
* throw exception when prop doesn't match
* cannot use castUp
* improve codes
* improve name of functions
* add both
* add override
* solve conflicts
* [core] Move MiraiCoreServices to common
* [core] Improvement
* update var names
* update func names
---------
Co-authored-by: Karlatemp <kar@kasukusakura.com>
2023-03-11 18:12:56 +08:00
ヒューマンワーキン
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