Commit Graph

1153 Commits

Author SHA1 Message Date
sandtechnology
2d0fa69899
Try to fix #358 according to @Mrs4s comment (#509)
* try to fix #358 according to @Mar8s comment

* Disable mirror

* Cancel group coroutine when bot leave group and fire event separately

* Re-add 0x82 and 0x83

* Revert else logic

* Fix build

Co-authored-by: Him188 <Him188@mamoe.net>
2020-09-16 08:23:56 +08:00
Him188
22112d222b Fix PermissionDeniedException.message 2020-09-15 22:58:29 +08:00
Him188
8a7f56f90b Redesign nudge 2020-09-15 22:42:28 +08:00
sandtechnology
59f465f66b
Support Nudge (#600)
* Support Nudge message

* Delete duplicated code

* Renamed NudgeManager and using boolean return value in Nudge method

* Fix document and remove JvmSynthetic annotation

* Remove test code

* Add document for bot object

* use checkIsFriendImpl to instead cast operation

* Add a space between char and number

* Change the text of bot and member to reference

* Revert change in QQAndroidBotNetworkHandler

* Make debug log more clearly

* Support tracking chat target in FriendNudgeEvent

* Add LICENSE in NudgePacket.kt
2020-09-15 21:17:21 +08:00
Him188
4155a8f8ba Fix IndexOutOfBoundsException on relogin. Close #598 2020-09-15 20:56:53 +08:00
Him188
24afb61c55 Improve duplication filtering. Fix #249, fix #580, fix #581, fix #590, fix #542, fix #567 2020-09-15 20:52:18 +08:00
Him188
ffacea8089 Fix Bot.nick, close #566 2020-09-15 20:32:14 +08:00
Karlatemp
359c9cdc5f
Support Group Retrieve, fix #528 (#531)
* Support Group Retrieve, fix #528

* Code Review

- Fix unexpected member in owner changing event.
- Allocate group when changing the owner to the bot if group is missing.
2020-09-15 19:30:52 +08:00
yyuueexxiinngg
1faccc72f3
Add low level api for getting group honor members list. (#501)
* Add low level api for getting group honor members list.

* Remove default value for level name, unifies serialize result typing in GroupHonorTypeSerializer

* Remove unnecessary commas

* Remove filed 'bkn' from GroupHonorListData to prevent potential credential leak

* _GetGroupHonorList support getting ACTIVE data

* Add @SinceMirai("1.3.0") annotation to GroupHonorInfo

* Add @JvmStatic annotation, rename GroupHonorType.fromInt to .deserializeFromInt and make it internal
2020-09-15 12:54:02 +08:00
Him188
19e8d8c6ed Fix group info, e.g. isMuteAll, isAllowMemberInvite. Close #286 2020-09-15 12:51:25 +08:00
Him188
1018f1e80e Remove duplicated space between QuoteReplys, fix #524 2020-09-15 12:15:56 +08:00
Him188
b15da90fee Remove duplicated space between Ats, fix #411 2020-09-15 12:15:29 +08:00
Him188
0294df4700 Use single thread for reading packet, fix #557 2020-09-15 10:29:51 +08:00
Him188
ec0ec396ef Improve exception message for PermissionDeniedException 2020-09-12 00:11:08 +08:00
Him188
568d37812b Add retry for syncing issues (#249, #482, #542, #567, #590) 2020-09-11 23:50:58 +08:00
Him188
4b25900ab8 Drop bad servers on failure, fix #589 2020-09-11 23:39:19 +08:00
Him188
bd4dcec68e Fix copyright 2020-08-23 19:57:09 +08:00
Him188
eb8f6c8829 Merge branch 'master' into dev 2020-08-22 14:03:11 +08:00
Him188
44d90c703f Exclude kotlinx-coroutines-core and kotlin-stdlib from dependencies to avoid clashes (fix #523) 2020-08-22 12:56:41 +08:00
Him188
3e4de4fa74 Merge remote-tracking branch 'origin/dev' into dev 2020-08-22 01:32:19 +08:00
Him188
146768ea10 Fix exception message in PermissionDeniedException 2020-08-22 01:30:38 +08:00
mzdluo123
8e3fb15556
Fix receiving messages repeatedly 2020-08-21 17:57:34 +08:00
Him188
7d4df0f952 Merge branch 'dev' 2020-08-19 20:45:11 +08:00
Him188
0dd4974250 Add blocking bridge for group.uploadVoice, close #512 2020-08-19 20:42:40 +08:00
Him188
088c2712d3 Merge branch 'dev' 2020-08-19 20:38:31 +08:00
Him188
9bf6a59d9b Fix #511: group.uploadImage causes compiler error in Java 2020-08-19 20:36:31 +08:00
Him188
1b67a9fcd8 Merge branch 'dev' 2020-08-19 10:44:41 +08:00
ryoii
5edcf410b6 [Fix conflict] ReNamed pb struct 2020-08-19 10:22:53 +08:00
Him188
31f688cdca Merge remote-tracking branch 'origin/dev' into dev 2020-08-19 10:22:23 +08:00
ryoii
2f5be83279 [Fix conflict] ReNamed pb struct 2020-08-19 10:21:02 +08:00
ryoii
faa7c4189f Merge remote-tracking branch 'origin/dev' into dev 2020-08-19 10:10:11 +08:00
ryoii
08a2753fde Merge branch 'dev1.3' into dev
# Conflicts:
#	mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.ReqPush.kt
2020-08-19 10:09:03 +08:00
TheSnowfield
22d871c68a
update some unknown fields (#487)
* update some unknown fields in Tlv.kt

* 1 to true
2020-08-19 10:06:31 +08:00
Karlatemp
b42733ad15
Support Nick changed event (#507)
* Support Nick change

* Fix up FriendInfo

* @JvmField

* Update friend.kt

Co-authored-by: Him188 <Him188@mamoe.net>
2020-08-19 10:04:59 +08:00
Him188
b78c771430 Ignore inherited stdlib from kotlinx-io 2020-08-19 09:32:56 +08:00
Him188
679d61a6b1 Replace deprecated String.toMessage 2020-08-19 09:32:28 +08:00
Him188
fdede76f11 Merge remote-tracking branch 'origin/dev' into dev 2020-08-18 22:59:42 +08:00
Him188
4703095f46 Use JvmBlockingBridge 2020-08-18 22:09:05 +08:00
Him188
419a8f84c4 Deprecate URL.toExternalImage, Input.toExternalImage and relevant APIs. 2020-08-18 21:21:21 +08:00
HelloWorld
7d321ee206
Merge branch 'dev' into dev 2020-08-18 20:16:12 +08:00
mzdluo123
596194cb10
Merge remote-tracking branch 'origin/dev' into dev 2020-08-18 19:59:21 +08:00
mzdluo123
e840839557
try domain to connect server at first 2020-08-18 19:58:14 +08:00
Him188
6c21971ce0 Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	mirai-core/src/commonMain/kotlin/net.mamoe.mirai/contact/Group.kt
2020-08-18 19:55:12 +08:00
ryoii
996063a58f Named pb struct 2020-08-18 15:48:45 +08:00
sandtechnology
293e4fb06f Format and annotation 2020-08-18 15:25:39 +08:00
mzdluo123
e6374c8849
custom codec 2020-08-18 11:50:52 +08:00
mzdluo123
2936ce4066
Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/contact/GroupImpl.kt
2020-08-18 10:37:41 +08:00
ryoii
0b290ba532 Fix #448 2020-08-18 10:37:21 +08:00
HelloWorld
eda8ad9318
Merge pull request #502 from yyuueexxiinngg/voice-silk-support
Add send silk format voice support, fix typo.
2020-08-18 10:36:50 +08:00
mzdluo123
ea8ed17844
add @SinceMirai("1.2.0") to voice upload api 2020-08-18 10:31:03 +08:00