Commit Graph

5597 Commits

Author SHA1 Message Date
Him188
3fc6fbed85 Change all system property names mirai.debug.network.* to mirai.network.* 2021-07-28 11:45:43 +08:00
Him188
24d52bbe90 Convert ComponentKey.componentName and .smartToString to extension 2021-07-28 11:04:32 +08:00
Him188
2d5c434146 Delete package context 2021-07-28 10:58:04 +08:00
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
Him188
883518b1f1 Remove unused expressions 2021-07-23 12:58:09 +08:00
Him188
dfbe73da9a Do unwrap even if wrapper exception has suppressed exceptions 2021-07-22 11:48:11 +08:00
Him188
8d41e18cdc Improve Throwable.unwrap on Android: improve performance 2021-07-22 11:48:11 +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
Him188
2929db7f38 Implement Throwable.unwrap accordingly to the target platform. Fix #1404 2021-07-16 15:22:31 +08:00
Karlatemp
3a9889b8c0 Decode html entities when polling announcements 2021-07-16 14:52:09 +08:00
Karlatemp
5b170ab63a Add HtmlEntity for decode html entity 2021-07-16 14:52:09 +08:00
Karlatemp
b423430b74
Deprecate GroupSettings.entranceAnnouncement; close #1399, close #1398 2021-07-15 22:29:51 +08:00
Karlatemp
d40b74b311
Fix announcement publishing with sendToNewMember=true 2021-07-15 22:26:09 +08:00
Excaive
d5372f350d Add third-party Python SDK Excaive/miraicle
Picked from #1407. Closes #1407.
2021-07-14 04:25:21 +08:00
忘忧北萱草
c5577f290d
move SDK YiriMirai to new scope (#1415) 2021-07-12 21:40:53 +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
Karlatemp
2c3f686315
Update issue template of bug report 2021-07-07 23:03:18 +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
8ede2cc78f Release version 2.7-M2 2021-07-06 21:50:13 +08:00
Him188
47cf27f4d8 apiDump 2021-07-06 20:20:04 +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
51d354c5e9 Improve Announcement logging 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
9a270dbba7 apiDump 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
cf7b2a14a1 Catch exceptions when fetching group announcements and log with logger 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