Him188
3772861e17
Move AccountSecrets
from package context
to components
2021-07-28 10:57:39 +08:00
Him188
2995e47f40
Move SsoProcessorContext
from package context
to components
2021-07-28 10:55:26 +08:00
Him188
0e45deef68
Move SsoSession
from package context
to components
2021-07-28 10:53:03 +08:00
Him188
4f1a22cd20
Move BdhSession
from package context
to components
2021-07-28 10:52:02 +08:00
Him188
3b5ec941b3
Always throw MaxAttemptsReachedException
when for consistency;
...
Correctly count failure attempts;
Tolerant `NetworkException` thrown while `resumeInstanceCatchingException`, fix #1361
2021-07-23 13:19:28 +08:00
Karlatemp
2a641415a7
Fix network not reconnect when received ReqMSFOffline
2021-07-21 00:54:49 +08:00
Karlatemp
b74b6da8a3
Add testing
2021-07-21 00:54:49 +08:00
Karlatemp
6ab2d7e4c0
Flatten NetworkException
2021-07-21 00:54:49 +08:00
Karlatemp
2730c80d2d
Fix logging of MessageSyncEvent
, fix #1380
2021-07-19 09:38:29 +08:00
Karlatemp
3a9889b8c0
Decode html entities when polling announcements
2021-07-16 14:52:09 +08:00
Karlatemp
d40b74b311
Fix announcement publishing with sendToNewMember=true
2021-07-15 22:26:09 +08:00
sandtechnology
95a36443fe
Fix #1192 again, taken suggestion from @AdoptOSS and @takayama-lily
2021-07-12 02:46:40 +08:00
sandtechnology
69a48987e7
Revert "Fix #1192 , request admin when loading groups ( #1257 )"
...
This reverts commit ad7f95d0
2021-07-12 02:46:40 +08:00
sandtechnology
b2d6e7423a
Fix #1405 , before it is a compiler undefined behavior ( #1408 )
2021-07-11 10:07:41 +08:00
Him188
dd606c3022
Improve performance of hexToBytes
and simplify similar extensions
2021-07-07 15:00:28 +08:00
Him188
a0baa65193
Announcement API: Refine naming of properties:
...
- pinned -> isPinned
- popup -> showPopup
- needConfirm -> requireConfirmation
- readMemberNumber -> confirmedMembersCount
- publishTime -> publicationTime
- isAllRead -> allConfirmed
2021-07-06 19:45:51 +08:00
Him188
9d9b9ce7e2
Change AnnouncementImage
's width
and height
to Int
2021-07-06 19:12:45 +08:00
Him188
51d354c5e9
Improve Announcement logging
2021-07-06 19:12:45 +08:00
Him188
d10cd270e8
Make AnnouncementParameters better for Java
2021-07-06 19:12:45 +08:00
Him188
5c89645056
Add a stable factory-method for AnnouncementImage
2021-07-06 19:12:45 +08:00
Him188
b239c57679
Re-order parameters of AnnouncementImage
2021-07-06 19:12:45 +08:00
Him188
47192f3ee3
Make Announcements.asStream
not suspend
2021-07-06 19:12:45 +08:00
Him188
cf7b2a14a1
Catch exceptions when fetching group announcements and log with logger
2021-07-06 19:12:45 +08:00
Him188
b319e2bc5c
Remove parameter title
of Announcement
2021-07-06 19:12:45 +08:00
Him188
4a2b510a70
Remove announcements' low-level API and bundle them into AnnouncementProtocol
, improve code style and maintainability
2021-07-06 19:12:45 +08:00
Him188
f5ce64ba4f
Redesign Announcement API
...
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-07-06 19:12:45 +08:00
Him188
d6c4b5456f
Remove inappropriate weak references
2021-07-06 19:12:10 +08:00
Him188
ddcac473dd
Improve logging on updating account secrets
2021-07-05 17:50:38 +08:00
sandtechnology
b7869888f0
StatSvc.Register: Provide SSO Ip and correct logic ( #1240 )
...
* StatSvc.Register: Provide SSO Ip and correct logic
* Remove unnessacy launch
Co-authored-by: Him188 <Him188@mamoe.net>
* Test for last polled ip
* Normal login test for last ip
* Fix test failed and remove debug code
* Fix unit test and build
* Optimize pollCurrent and pollAny method
* Use uOldSSOIp and uNewSSOIp only when protocol is PHONE
* Fix bug in toIpV4Long
* Fix new line in NettyBotNormalLoginTest.kt
* Using Inet4Address and toInt method for toIpV4Long
* Return Unsigned Long for toIpV4Long
* Remove unnessacy synchronized annotation
Co-authored-by: Him188 <Him188@mamoe.net>
* Using createAddress method instead of address
* Moving lastDisconnectedIp and lastConnectedIp to Server
List
* Fix build
* Fix build and remove empty line
* Keeping naming consistent
* Use bot.components instead of overrideComponents
Co-authored-by: Him188 <Him188@mamoe.net>
* Revert overrideComponents changes and add comment for overrideComponents
Co-authored-by: Him188 <Him188@mamoe.net>
2021-07-03 22:04:49 +08:00
Him188
2713127466
Fix reconnection on Heartbeat timeout: add PacketTimeoutException
2021-07-03 21:57:12 +08:00
Him188
7b42fc6888
Fix recalling friend message, fix #1293
2021-07-02 22:36:24 +08:00
Him188
6b18a6fea9
Improve PbMessageSvc.PbMsgWithDraw
logging, helps #1293
2021-07-02 22:18:15 +08:00
Him188
ec5ad17ac4
Improve ForceOfflineException.message
: use canonical message tips
2021-07-02 21:43:48 +08:00
Him188
8647d38b34
Add MessageReceiptTest
for #1371
2021-07-02 21:06:31 +08:00
Him188
a59d7208cb
Add getMiraiImpl
to replace direct calls of MiraiImpl.INSTANCE
2021-07-02 21:06:31 +08:00
Him188
91a9e63877
Do light refine after constructing MessageReceipt
, fix #1371
2021-07-02 21:06:31 +08:00
Karlatemp
a4b62b0909
Voice serialization ( #1368 )
...
* Voice serialization
* Implement `hashCode` and `equals` for `Voice`
* Update test
* Update test
* Add note of `PttMessage.pttInternalInstance`
* Fix logic of `Voice.equals`
2021-07-02 12:10:20 +08:00
Him188
5aae46218f
Do not throw exception from PacketCodec but log with CoroutineExceptionHandler
2021-07-02 01:18:40 +08:00
Him188
b90f86258c
Add property recoverable
to HeartbeatFailedException
, to control recoverability.
...
Fix `SelectorRecoveryTest`
2021-07-02 01:18:40 +08:00
Him188
adc39a93b5
Update copyright
2021-07-02 00:39:10 +08:00
Him188
b9eb654a51
Reformat and cleanup code
2021-07-02 00:39:10 +08:00
Him188
d114d0a2e6
Optimize BotInitProcessor
and add tests
2021-07-02 00:39:10 +08:00
Him188
b78c276aef
ChunkedFlowSession
: Ensure channel is closed on completion
2021-07-02 00:39:10 +08:00
Him188
fa9d236949
Avoid using TopLevel
logger in tests
2021-07-02 00:39:10 +08:00
Him188
f379a617fd
NetworkHandlerSupport
: catch all exceptions in coroutine scope and direct it to network logger
2021-07-02 00:39:10 +08:00
Him188
6012f33574
Add selector logging, helps #1361
2021-07-02 00:39:10 +08:00
Him188
4d3a9e7cc5
Add SynchronizedStdoutLogger
for tests
2021-07-01 11:06:58 +08:00
Him188
0d339c7303
Remove redundant suspension in BotOfflineEventMonitorImpl
2021-06-30 23:01:42 +08:00
Him188
e10155a7b3
AbstractKeepAliveNetworkHandlerSelector
do not yield()
but check for cancellation manually.
2021-06-30 23:01:22 +08:00
Him188
c4d129542f
Unwrap CancellationException
on JobAttachStateObserver.stateChanged0
2021-06-29 23:10:06 +08:00