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
4d0afc27dc
Introduce auto close for ExternalResource
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
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
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
Him188
4b4e7e1dcc
Fix MemberJoinEvent
processing and add MemberJoinTest
2021-09-01 13:55:39 +08:00
Him188
56cbe2d8a2
Redesign notice handling and introduce NoticeProcessorPipeline
part 2
...
Do not broadcast StrangerAddedEvent if added twice, fix stranger scope not closed
Do not add new instance if there is already one
Close and remove corresponding stranger instance if there is new friend.
2021-09-01 13:55:39 +08:00
Him188
dc54679acb
Redesign notice handling and introduce NoticeProcessorPipeline
2021-09-01 13:55:39 +08:00
Him188
03a18724fe
Add out
variance to generic type of ContactList
2021-09-01 13:55:39 +08:00
Karlatemp
66c209381d
Improve event log
2021-08-26 22:28:33 +08:00
Him188
c3258eaa3b
Update docs for NormalMember
2021-08-25 13:58:34 +08:00
Him188
a34c11f239
Make classes sealed: MessageEvent
, UserMessageEvent
, GroupAwareMessageEvent
2021-08-13 16:21:46 +08:00
Him188
13484c7a7a
Remove redundant TODOs and unused classes
2021-08-13 16:21:46 +08:00
Karlatemp
8a607eddaf
Add RequestEventData
for saving request events ( #1309 )
...
* Add `RequestEventData` for saving request events
* typo
* Remove `data`; Add `@SerialName`
2021-08-12 14:18:25 +08:00
Him188
5170f217ad
Add test for compatibility on legacy logging overrides
2021-08-11 15:24:32 +08:00
Him188
dcd8a1aee0
Fix static initialization of DefaultFactory
2021-08-11 15:24:32 +08:00
Him188
9189affdf9
Do not wrap original MiraiLogger
as MarkedMiraiLogger
if it is not the type
2021-08-11 15:24:32 +08:00
Him188
317b3cc0c7
Fix factory loader for MiraiLogger.Factory
2021-08-11 15:24:32 +08:00
Him188
5950e9e1e8
Improve logging: use Log4j internally and support markers
...
Migrate usages of `MiraiLogger.create` to new API
apiDump for new logging
2021-08-11 15:24:32 +08:00
Him188
8d8aca3f1c
Introduce Audio
for new API, revert changes on Voice
2021-08-05 21:48:20 +08:00
Him188
12b96aedc9
Make hints in SwingSolver.onSolveUnsafeDeviceLoginVerify
more clear
2021-08-04 12:30:15 +08:00
Him188
927da16245
Add subscribeUserMessages
2021-08-04 12:29:33 +08:00
RainChan
bd61c1e80d
支持在踢出群成员时选择是否拉黑 ( #1457 )
...
* 支持在踢出群成员时选择是否拉黑
* fix binary-compatibility for kick NormalMember
* change doc
2021-08-03 22:20:53 +08:00
RainChan
0c6115dcf3
fix docs for subscribeOnce
2021-08-03 19:37:29 +08:00
Him188
03a6596553
Remove redundant overrides for contacts
2021-08-02 14:25:23 +08:00
Him188
a14531f696
Update KDoc for contacts
2021-08-02 14:11:05 +08:00
Him188
978228afc1
Remove duplicated serializers for UnsupportedMessage
2021-07-31 17:50:55 +08:00
Him188
0ebf656c20
Improve performance of MessageChainBuilder.add
and .addAll
2021-07-31 17:50:40 +08:00
Karlatemp
b423430b74
Deprecate GroupSettings.entranceAnnouncement
; close #1399 , close #1398
2021-07-15 22:29:51 +08:00
Him188
dd606c3022
Improve performance of hexToBytes
and simplify similar extensions
2021-07-07 15:00:28 +08:00
Him188
eaa8f20208
Mark UserProfile
with NotStableForInheritance
2021-07-07 13:47:45 +08:00
Him188
e389594c47
Update docs on MemberPermission
2021-07-07 13:47: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
881f713be2
Update docs of announcement
2021-07-06 19:12:45 +08:00
Him188
9d9b9ce7e2
Change AnnouncementImage
's width
and height
to Int
2021-07-06 19:12:45 +08:00
Him188
6145b3ef47
Remove inline
to make compiler happy :)
2021-07-06 19:12:45 +08:00
Him188
c588b5ce76
Add permission requirement to docs on
...
some Announcement API
2021-07-06 19:12:45 +08:00
Him188
d08c6b81a8
Add simplified one-line API for publishing a single announcement
2021-07-06 19:12:45 +08:00
Him188
b98fcdd2e5
Add default argument to OfflineAnnouncement
2021-07-06 19:12:45 +08:00
Him188
f7e2391d96
Add contracts for eligible Announcement API
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
858766d6b5
Make OfflineAnnouncement.create
synthetic
2021-07-06 19:12:45 +08:00
Him188
1abc65fb16
Update docs for Announcement API
2021-07-06 19:12:45 +08:00
Him188
47192f3ee3
Make Announcements.asStream
not suspend
2021-07-06 19:12:45 +08:00
Him188
9f1343c02e
Generate equals
, hashCode
and toString
for AnnouncementParameters
abd AnnouncementImage
2021-07-06 19:12:45 +08:00
Him188
d2e35772d0
Add constructor-like functions for Kotlin users
2021-07-06 19:12:45 +08:00
Him188
1abfcf4317
Add OfflineAnnouncement.serializer
2021-07-06 19:12:45 +08:00
Him188
b319e2bc5c
Remove parameter title
of Announcement
2021-07-06 19:12:45 +08:00