Commit Graph

1048 Commits

Author SHA1 Message Date
Him188
4d52078c88 Remove unused class 2020-04-10 22:39:44 +08:00
Him188
458fe2ee94 Fix duplicated OnlinePush 2020-04-10 22:24:46 +08:00
Him188
b0bc0ec62b Rearrange files 2020-04-10 20:45:20 +08:00
Him188
7bb9052afd Add missing copyright 2020-04-10 20:40:50 +08:00
Him188
f11690472a Fix new member joining, close #172 2020-04-10 20:31:20 +08:00
Him188
d8a5291880 Fix new member 2020-04-10 20:29:17 +08:00
Him188
3c786cb042 Support MemberJoinEvent.Active, also fix #164 2020-04-10 20:21:51 +08:00
Him188
418fb43992 Returns botAsMember when Group.get(bot.id) 2020-04-10 19:40:34 +08:00
Him188
2c31a2ac2f Fix jce type 2020-04-10 19:35:00 +08:00
Him188
42e465af35 Fix jce type 2020-04-10 19:34:47 +08:00
Him188
4728ae26b7 Cleanup 2020-04-10 19:16:12 +08:00
Him188
1e1785f4d6 Add ForwardMessage, support decoding, fix LongMessage decoding 2020-04-10 19:16:06 +08:00
Him188
c65350e9cf Change friend list on FriendDeleteEvent 2020-04-10 19:02:38 +08:00
Him188
918ede1fa6 Add FriendDeleteEvent, FriendAddEvent, also fix #216 2020-04-10 18:56:26 +08:00
Him188
1ff84a4c91 Fix #212 2020-04-10 15:06:06 +08:00
Him188
94557a2a33 Reduce nesting depth, also fix #173 2020-04-10 14:50:33 +08:00
ryoii
98542546bc Merge remote-tracking branch 'origin/master' 2020-04-09 16:20:09 +08:00
ryoii
56c63723e8 Fix rich group name card, and support name card changed event. close #210 2020-04-09 16:17:14 +08:00
Him188
ec35eeba1c Simplify Bot structure 2020-04-09 16:14:48 +08:00
Him188
f28e50e0af Add fail-fast check 2020-04-09 16:00:53 +08:00
Him188
ee89f22c87 Fix kick 2020-04-09 15:56:45 +08:00
Him188
8f4313a337 Increase timeout, close #28 2020-04-09 12:27:34 +08:00
Him188
3a8b2dd6d2 Fix MessageSource.id from offline quotations 2020-04-09 09:38:30 +08:00
Him188
a604083e9a Fix naming issue 2020-04-09 08:55:17 +08:00
ryoii
2053ab198c Support TempMessage 2020-04-08 22:12:18 +08:00
Him188
5493bf39da Fix build 2020-04-08 14:43:30 +08:00
Him188
df9a5f7c0a Fix incorrect new contact handling 2020-04-08 14:37:33 +08:00
Him188
b4140b7871 Extract reloadFriendList() outside init() 2020-04-08 14:33:51 +08:00
Him188
6480e78b24 Handle ContactList syncing on new friend or member event. 2020-04-08 14:33:13 +08:00
Him188
afb093ba44 Fix massive concurrent loading 2020-04-08 13:50:48 +08:00
Him188
6a7ece1cb8 Fix LongMessage decodeing 2020-04-08 13:29:26 +08:00
Him188
faf8002de9 Fix massive group list loading 2020-04-08 13:25:20 +08:00
Him188
a69d6e2ecd cleanup 2020-04-08 10:43:13 +08:00
Him188
acd11b6eda Make protocol structure classes internal 2020-04-08 10:42:59 +08:00
Him188
62e6d3f473 Make OIDB structure classes internal 2020-04-08 10:38:56 +08:00
ryoii
b08b5bccf9 Internal struct class 2020-04-08 00:46:14 +08:00
ryoii
0463140b8b Fix bot as a member can't change group card itself 2020-04-07 23:58:18 +08:00
ryoii
eec820c1a7 Support for approving requests of adding friend and joining group, close #91 2020-04-07 21:14:34 +08:00
Him188
5c95ab299e Adjust timeout, add retry for several servers 2020-04-07 14:36:51 +08:00
Him188
7049cc4591 Simplify expression 2020-04-07 13:50:55 +08:00
Him188
fb19c0af36 Support MessageSource in MessageSource.originalMessage 2020-04-07 10:06:11 +08:00
Him188
6c25516143 Fix permission detection on recalling self-sent message 2020-04-07 09:23:05 +08:00
Him188
dc4b0cbe1e Implement Packet.NoLog 2020-04-07 09:01:17 +08:00
Him188
1b8626df13 Implement Packet.NoLog 2020-04-07 09:00:58 +08:00
Him188
b72589de24 Remove useless fast re-login 2020-04-06 20:57:51 +08:00
Him188
09dca31a6b Force message to be in single line 2020-04-06 20:54:37 +08:00
Him188
f6cc90a893 Unified message logs 2020-04-06 20:37:42 +08:00
Him188
560c46ede4 Unified message logs 2020-04-06 20:33:26 +08:00
Him188
165de9a85d Fix references 2020-04-06 19:14:12 +08:00
Him188
b8b749bf65 Completed CombinedMessage redesigning and constraining on concatenation 2020-04-06 18:04:41 +08:00
ryoii
fcf2f5c84c Fix message length estimate again, #195 2020-04-05 23:51:35 +08:00
Him188
7e6badb8db Use retryCatching in place of tryNTimes 2020-04-05 23:36:19 +08:00
Him188
c95efe98a3 Fix addSuppressedMirai on JVM 2020-04-05 23:09:12 +08:00
Him188
c6c404f167 Add missing files 2020-04-04 23:41:31 +08:00
Him188
864cde060e Fix #180 2020-04-04 23:22:52 +08:00
Him188
19bc7b80c5 Rename MessageSource.senderId to MessageSource.fromId 2020-04-04 22:38:08 +08:00
Him188
039b3d7517 Cleanup 2020-04-04 22:17:35 +08:00
Him188
2b49a7586f Reconstruct MessageSource, fix #197, #133 2020-04-04 22:08:53 +08:00
Him188
c3be191db0 Rearrange FlashImage, add more docs 2020-04-04 14:33:55 +08:00
Him188
3cc5cbfcfd Introduce BotIsBeingMutedException to replace IllegalStateException 2020-04-04 14:17:32 +08:00
Him188
e8b0c99006 Fix name 2020-04-04 13:54:11 +08:00
Him188
220e6d42f5 Fix message length estimate, close #195 2020-04-04 13:50:47 +08:00
ryoii
eac23171ec Support Bot.nick, closed #93 2020-04-04 09:47:34 +08:00
ryoii
5e553a56ca Filter repeated GroupNameChangeEvent 2020-04-04 07:02:38 +08:00
ryoii
2a7496c0b5 Fix groupCard charset encode, fixed #77 2020-04-04 06:11:19 +08:00
Him188
18c5911666 Cleanup 2020-04-03 10:32:44 +08:00
Him188
514084c46a Remove prints 2020-04-03 08:52:09 +08:00
Him188
b4f77454a1 Fix FlashImage constructing 2020-04-03 08:48:22 +08:00
Him188
985b0b4ba4 Make FlashImage constructable from mirai-core 2020-04-03 08:44:18 +08:00
ryoii
5cb93c9fa1 Support FlashImage 2020-04-03 03:11:14 +08:00
Him188
f8e0f27fc5 Fix reference 2020-04-02 21:20:36 +08:00
Him188
2f6ee0c4f7 Fix build 2020-04-02 21:05:36 +08:00
Him188
06092f0fc6 Move net.mamoe.mirai.qqandroid.io to net.mamoe.mirai.qqandroid.utils.io 2020-04-02 20:44:09 +08:00
Him188
32553fad2b Introduce ContactMessage to replace MessagePacket<*, *> 2020-04-02 20:27:16 +08:00
Him188
3773548983 Replace use of Bot.uin with Bot.id 2020-04-02 19:27:40 +08:00
Him188
d5868ed7c1 Add MessageTooLargeException to differentiate with mute exception 2020-04-02 18:28:19 +08:00
Him188
069753e9c2 Make chinese letter length estimating more safer 2020-04-02 18:12:04 +08:00
Him188
993faee554 Fix length estimate for the case Quote + Image 2020-04-02 16:16:09 +08:00
Him188
38748e0c10 Use Kotlin 1.3.71 2020-04-02 12:35:27 +08:00
Him188
97522bdf2a Rearrange internal APIs 2020-04-02 09:43:50 +08:00
Him188
6a09aff16d Minimize permission check procedure 2020-04-01 17:48:22 +08:00
Him188
717554ee7f Fix warnings 2020-03-31 15:09:29 +08:00
Him188
a520868994 Fix at 2020-03-31 15:03:27 +08:00
Him188
1f7bc4e50f Fix #178 2020-03-31 11:57:19 +08:00
Him188
8df45b4072 Remove _lowLevelSendLongGroupMessage, fix length counting 2020-03-30 16:01:30 +08:00
Him188
e3a8ae8d90 Fix longMessage size detect 2020-03-30 15:48:42 +08:00
Him188
f322af71d9 Make protocol classes internal 2020-03-30 14:45:24 +08:00
Him188
90b83afce7 Fix #165, use fast conversion, add tests 2020-03-30 14:31:27 +08:00
Him188
d3db5f1c62 Fix OnlinePush.RespPush, fix #83 2020-03-29 20:19:10 +08:00
Him188
b1f666e075 Fix build 2020-03-29 15:41:18 +08:00
Him188
92a57907ec Ignore old poke messages 2020-03-29 15:38:43 +08:00
Him188
52f8543597 Support poke message, close #132 2020-03-29 15:37:31 +08:00
Him188
2f063987a9 Fix #129 2020-03-29 14:28:32 +08:00
Him188
a6079f3eaf Support long message in general sendMessage 2020-03-29 13:56:11 +08:00
Him188
b6c24e008d Plan for redesigning of MessageSource 2020-03-29 13:34:54 +08:00
Him188
6d5b3086f6 Improve performance 2020-03-29 13:17:34 +08:00
Him188
181ab6e382 Improve performance 2020-03-29 13:06:54 +08:00
Him188
8d2e818454 Specify maximum requirements 2020-03-29 12:45:41 +08:00
Him188
90ef83e345 Move protocol-specific classes to mirai-core-qqandroid 2020-03-29 02:46:38 +08:00
Him188
7efb7834db Remove senseless response 2020-03-29 02:34:55 +08:00
Him188
e7a691dc4c Adjust name 2020-03-29 02:33:37 +08:00
Him188
a7e9b151e4 Support long messages 2020-03-29 02:26:59 +08:00
Him188
8f2843cbfa Handle mute result as an IllegalStateException 2020-03-28 14:16:39 +08:00
Him188
8d7e984b1c Remove useless files 2020-03-27 22:19:14 +08:00
Him188
3f523e6f77 Long message 2020-03-27 13:27:34 +08:00
Him188
c3f01f9027
Configure Shadow publish (#160)
* Test shadow

* Add print stacktrace

* Add more ways to find githubToken

* Error when failed to upload

* Try github token

* Use mamoe token

* Use header

* Rubbish actions

* Fix `GroupImpl.getGroupByUin`

* Triage shadow task on release
2020-03-25 16:16:21 +08:00
Him188
d5489737a7 Fix version 2020-03-24 17:32:22 +08:00
Him188
3ba1ae4a5c Adjust visibilities 2020-03-24 16:10:39 +08:00
Him188
5dc0475a73 Misc improvements 2020-03-24 15:45:49 +08:00
Him188
83793d3f7e Extract implementations of Contacts to separate files; correct package name 2020-03-24 15:41:26 +08:00
Him188
8eb597470f Extract group settings to interface GroupSettings 2020-03-24 15:35:03 +08:00
Him188
a9972dc030 Reduce code redundancy 2020-03-24 15:28:24 +08:00
Him188
ed46780983 Clear all deprecated functions which are for binary compatibility 2020-03-24 15:24:06 +08:00
Him188
eb7afb6cff Update to Kotlin 1.4-M1 2020-03-24 10:01:03 +08:00
Him188
fccb69bb3f Remove all unnecessary java-friendly JvmName magics 2020-03-23 20:05:17 +08:00
Him188
85840cc4ca Fix build 2020-03-22 23:54:53 +08:00
Him188
91e589c8a1 Fix build 2020-03-22 23:46:07 +08:00
Him188
c1e7b55910 Fix build 2020-03-22 23:44:26 +08:00
Him188
f9a296331d Binary compatibility 2020-03-22 23:42:46 +08:00
Him188
8e37cdbf93 Ensure references is released after Job cancelling 2020-03-22 15:57:43 +08:00
Him188
53fdcd41f7 Change sendMessage(MessageChain) to sendMessage(Message) 2020-03-22 14:16:31 +08:00
Him188
7820b43f6a Review: ensure reentrant, rearrange coroutine job management 2020-03-22 13:36:22 +08:00
Him188
d5c2c19c53 Rearrange tests 2020-03-21 14:15:13 +08:00
Him188
3e6c7bc691 Handle StatSvc.ReqMSFOffline, fix #150 2020-03-21 14:01:00 +08:00
Him188
40f157978f No more data class for ProtoBuf and JceStruct 2020-03-21 13:48:39 +08:00
Him188
1b152b28fb Remove shadowJar plugin 2020-03-19 15:15:15 +08:00
Him188
948658c9ec Fix shadowed struct elements 2020-03-19 14:52:59 +08:00
Him188
56c2331d10 Add new elements 2020-03-19 14:08:38 +08:00
Him188
320bb1b76f Fix deserializing 2020-03-19 14:05:32 +08:00
Him188
f48e27d743 Fix map skipping, close #145 2020-03-19 11:15:11 +08:00
Him188
702d8d9fa9 Fix optional element detecting 2020-03-19 11:07:53 +08:00
Him188
f068033400 Add test for skipping map 2020-03-19 11:07:18 +08:00
Him188
79bb9e7dc9 Add detailed error message 2020-03-17 21:46:15 +08:00
luo123
69d5bbd7fa group active data 2020-03-17 02:49:04 -05:00
Him188
eb02c28e3b Simplify with fold 2020-03-17 12:57:14 +08:00
luo123
9ff791e550 a little change 2020-03-14 11:43:43 +08:00
luo123
6973488db7 move to lowLevelApi.kt 2020-03-14 11:01:21 +08:00
luo123
4e7b3b0048 delete announcement 2020-03-14 00:45:36 +08:00
luo123
e57215a603 send announcement 2020-03-14 00:07:52 +08:00
luo123
aa61e9441a get GroupAnnouncementList is working now 2020-03-13 22:33:11 +08:00
luo123
220d293b7a get group announce list 2020-03-13 21:06:57 +08:00
Him188
0126e4ce67 Apply shadow plugin for future use 2020-03-08 22:25:00 +08:00
Him188
f2608d6956 Merge remote-tracking branch 'origin/master' 2020-03-08 22:22:26 +08:00
Him188
e51cf7ee71 Remove debugging logs 2020-03-08 22:16:04 +08:00
Him188
a64c061377 Support LightApp message 2020-03-08 22:14:59 +08:00
Him188
584b5e9822 xml and Json messages support 2020-03-08 22:05:08 +08:00
Him188
243b2ea731 Gather all platform-specified utilities into a MiraiPlatformUtils 2020-03-08 21:14:41 +08:00
Him188
a8a0d583ab Merge remote-tracking branch 'origin/master' 2020-03-08 20:15:14 +08:00
Him188
cf6b64ef0d Solve TODO 2020-03-08 18:45:23 +08:00
Him188
c69cb6f3de Fix Map entry tags, remove debugging logs 2020-03-08 17:44:34 +08:00
Him188
ce7af37ef4 Migrate to new Jce serializer 2020-03-08 17:13:33 +08:00
Him188
2acca0c2e6 Jce complex nesting support 2020-03-08 16:34:38 +08:00
Him188
e375d17f82 Support maps and nesting 2020-03-08 16:02:11 +08:00
Him188
7c3a2d8e13 Merge remote-tracking branch 'origin/master' 2020-03-08 14:12:29 +08:00
Him188
17b34b9d10 Simplify group quote 2020-03-08 13:27:23 +08:00
Him188
6731525e49 Improve structure 2020-03-08 00:57:29 +08:00
Him188
0a64654a4f Use kotlinx.io 2020-03-08 00:49:24 +08:00
Him188
c5d98cbefd Replace use of Experimental with OptIn 2020-03-08 00:47:12 +08:00
Him188
e39fe5a46f Merge branch 'master' into kotlin-1.3.70
# Conflicts:
#	mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/QQAndroidClient.kt
#	mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/highway/HighwayHelper.kt
#	mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/highway/highway.kt
#	mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/login/WtLogin.kt
#	mirai-core/build.gradle.kts
#	mirai-core/src/androidMain/kotlin/net/mamoe/mirai/utils/addSuppressed.kt
#	mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/ExternalImage.kt
#	mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/channels.kt
#	mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/chunked.kt
#	mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/input.kt
#	mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/addSuppressed.kt
2020-03-08 00:29:51 +08:00
Him188
200b8b98e7 Merge remote-tracking branch 'origin/master' 2020-03-08 00:25:31 +08:00
Him188
b1f36704c8 Revert "Use io.ktor.utils.io than kotlinx.io"
This reverts commit 6a85769e
2020-03-08 00:24:49 +08:00
Him188
1b1be6944c Merge remote-tracking branch 'origin/master' 2020-03-08 00:12:53 +08:00
Him188
3d9b598d57 Improve Heartbeat 2020-03-07 22:45:12 +08:00
Him188
e60a6bcf68 Revert "Use ktor.io than kotlinx.io" 2020-03-07 22:04:31 +08:00
Him188
6b54abe730 Revert "Use ktor.io than kotlinx.io"
This reverts commit ffee2e26
2020-03-07 18:49:59 +08:00
Him188
b3c4f24e33 Revert "Use io.ktor.utils.io than kotlinx.io"
This reverts commit 6a85769e
2020-03-07 18:48:07 +08:00
Him188
dba3cb5707 Simplify expression 2020-03-07 12:45:34 +08:00
Him188
e222465ded Make account internal 2020-03-07 00:24:37 +08:00
Him188
472da8d3f6 List support 2020-03-06 22:05:55 +08:00
Him188
92df108740 Support Lists 2020-03-06 19:09:34 +08:00
Him188
2260d331d4 Support ByteArray 2020-03-06 18:33:01 +08:00
Him188
d01c3c4675 Support optional elements 2020-03-06 17:51:48 +08:00
Him188
e52a394060 Add tests 2020-03-06 15:16:33 +08:00
Him188
19cc131247 Suppress false positive warnings 2020-03-06 15:15:39 +08:00
Him188
24983d8bbe Throws EOFException rather than IllegalStateException 2020-03-06 15:14:51 +08:00
Him188
115ccec9ed Rearrange classes 2020-03-06 14:41:15 +08:00
Him188
d8c64286e2 Use constant 2020-03-06 14:17:30 +08:00
Him188
4085ecbdd8 Fix warnings 2020-03-05 21:39:53 +08:00
Him188
3b16f0a226 Fix warnings 2020-03-05 21:36:46 +08:00
Him188
b0abd0df28 Skip field when preparing next head 2020-03-05 21:21:06 +08:00
Him188
bfcb8606a2 Merge branch 'master' into kotlin-1.3.70 2020-03-05 15:49:48 +08:00
Him188
cde198759c Rewrite Jce 2020-03-05 14:52:35 +08:00
Him188
8c48ca8136 Use new serialization 2020-03-05 14:52:12 +08:00
Him188
8777d583b0 Merge remote-tracking branch 'origin/kotlin-1.3.70' into kotlin-1.3.70
# Conflicts:
#	mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/highway/HighwayHelper.kt
#	mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/chunked.kt
2020-03-05 09:45:12 +08:00
Him188
9bff0f77ec Kotlin 1.3.70 2020-03-05 09:44:50 +08:00
Him188
33d562a296 Merge remote-tracking branch 'origin/kotlin-1.3.70' into kotlin-1.3.70 2020-03-04 21:50:49 +08:00
Him188
9a039e1602 Fix reference
(cherry picked from commit 8dabeba40d)
2020-03-04 21:50:17 +08:00
Him188
8dabeba40d Fix reference 2020-03-04 21:21:23 +08:00
Him188
c962bd2641 Revert "Adapt new kotlinx.serialization"
This reverts commit 0a6b39e6
2020-03-04 14:11:36 +08:00
Him188
60b6eab73e Revert "Update to Kotlin 1.3.70"
This reverts commit 2e57e358
2020-03-04 13:58:01 +08:00
Him188
b62151ea6e Fix dependency 2020-03-04 12:23:33 +08:00
Him188
0a6b39e62c Adapt new kotlinx.serialization 2020-03-04 10:50:54 +08:00
Him188
30b6181e3e Fix #105 2020-03-04 09:32:32 +08:00
Him188
095feaf5cb Fix #106 2020-03-04 09:27:37 +08:00
Him188
b9d5fa4c14 Fix #107 2020-03-04 09:14:53 +08:00
Him188
a5c3e9f5ba Misc improvements 2020-03-04 09:01:34 +08:00
Him188
2e57e358c3 Update to Kotlin 1.3.70 2020-03-04 08:54:56 +08:00
Him188
e6cb229b18 Unified packet sending 2020-03-03 20:51:55 +08:00
Him188
a448dbbaf8 Fix relogin 2020-03-03 20:14:35 +08:00
Him188
a9753c4414 Fix sendMessage 2020-03-03 16:43:18 +08:00
Him188
12ebfa1db5 Unified Image types: Online/Offline Image, Group/Friend Image 2020-03-03 13:45:33 +08:00
Him188
3c25c3df65 Simplify calls 2020-03-03 10:26:50 +08:00
Him188
9047fd0d4c Bump version to 8.2.7 2020-03-03 09:47:33 +08:00
Him188
8042249f51 Rename toChain to asMessageChain, add more java-friendly apis 2020-03-03 09:31:01 +08:00
Him188
56bf626a59 Pass @LowLevelAPI annotation 2020-03-03 08:47:32 +08:00
Him188
9b1f17b074 Specify JvmNames 2020-03-03 08:47:18 +08:00
Him188
dc7d73f148 Misc improvements 2020-03-03 08:43:32 +08:00
Him188
cadbd7ff3a Deprecate Bot.qq, Bot.get, Bot.contains 2020-03-03 08:32:39 +08:00
Him188
28c0530268 Add more builders for Bot 2020-03-03 08:26:15 +08:00
Him188
6a324d4ab7 Use strong reference to qq in Member 2020-03-02 16:01:40 +08:00
Him188
d97bd5b960 Use strong reference to qq in Member 2020-03-02 15:59:30 +08:00
Him188
52138ec34d Fix versions 2020-03-02 14:33:02 +08:00
Him188
b7fa7adf99 Add Java-friendly APIs for Contacts 2020-03-01 20:13:52 +08:00
Him188
ed712295fe Add Java-friendly APIs 2020-03-01 17:10:55 +08:00
Him188
bd1a968db9 misc 2020-03-01 16:55:33 +08:00
Him188
ca0d0969b9 Add fast-paths 2020-03-01 15:46:04 +08:00
Him188
49e34f8302 Fix filter 2020-03-01 15:38:33 +08:00
Him188
da610ee8b7 Remove debugging log 2020-03-01 15:35:55 +08:00
Him188
83faf81fb2 Better API visibility 2020-03-01 15:26:46 +08:00
Him188
bbf991103d Add MessageSource.originalMessage 2020-03-01 14:40:51 +08:00
Him188
58b1a4d7e3 Reduce code complexity 2020-03-01 14:40:24 +08:00
Him188
03e22bcfef Replace mirai_version with miraiVersion 2020-03-01 13:01:36 +08:00
Him188
3748963a03 Support MessageReceipt.quoteReply for group 2020-03-01 01:55:03 +08:00
Him188
3d6fe5a803 Add Cmd0x858 2020-03-01 00:31:53 +08:00
Him188
1dd4caa057 Support recall events, close #88 2020-02-29 23:48:44 +08:00
Him188
6a85769e0d Use io.ktor.utils.io than kotlinx.io 2020-02-29 23:19:53 +08:00
Him188
ffee2e26fc Use ktor.io than kotlinx.io 2020-02-29 21:25:30 +08:00
Him188
1e9b34a636 Add low-level apis 2020-02-29 14:46:40 +08:00
Him188
067a949630 Rename MessageSource.senderId to MessageSource.qqId 2020-02-29 13:58:27 +08:00
Him188
756e8b537e Improve equals 2020-02-29 13:24:24 +08:00
Him188
6afc11df45 Remove debugging printlns 2020-02-28 22:05:17 +08:00
Him188
01ff846929 Fix copyTo 2020-02-28 22:02:34 +08:00
Him188
469181e249 Fix imageUpload 2020-02-28 21:38:11 +08:00
Him188
e2170175c9 Fix image uploading 2020-02-28 20:23:09 +08:00
Him188
ccf5df944e ImageUpload: enhance performance using ByteArrayPool, send chunked packets separately 2020-02-28 19:17:32 +08:00
Him188
932a3ef1f2 Review: misc improvements 2020-02-28 19:16:22 +08:00
Him188
a7755cd736 Rename readPacket to readPacketExact 2020-02-28 13:27:46 +08:00
Him188
fca3d6bd7a Make HttpClient.postImage not suspend 2020-02-28 13:11:28 +08:00
Him188
0d08956349 Add timeout check for uploading image 2020-02-28 10:26:52 +08:00
Him188
be63ec48fa Review: misc improvements 2020-02-26 12:54:06 +08:00
Him188
753f3261e0 Review: misc improvements 2020-02-26 10:36:14 +08:00
Him188
8b9cef05d7 Specify OverFileSizeMaxException throws 2020-02-24 17:09:08 +08:00
Him188
6cbc69cd68 Fix sequenceId for FriendMessage 2020-02-24 10:26:27 +08:00
Him188
babc21198c Add timeout 2020-02-23 19:31:26 +08:00
Him188
10da499039 Structured Message 2020-02-23 18:14:26 +08:00
Him188
ccc6826e3a Redesign MessageChain:
Make MessageChain immutable
Introduce CombinedMessage, a left-biased list
Introduce MessageChainBuilder
2020-02-23 16:47:21 +08:00
Him188
5590ef510d Powerful ExternalImage: support various types of input 2020-02-23 12:22:51 +08:00
Him188
ec30eef250 Powerful QuoteReply 2020-02-23 02:12:04 +08:00
Him188
5f141cdb6d Supports friend message quote reply 2020-02-23 01:29:21 +08:00
Him188
17aff7d599 Make quoteReply common to MessagePacket 2020-02-23 01:01:20 +08:00