Commit Graph

911 Commits

Author SHA1 Message Date
Him188
9531ed8a01 Fix build 2020-04-23 14:21:15 +08:00
Him188
83f721c59a Cleanup 2020-04-23 14:20:55 +08:00
Him188
1b4e1475a0 Support ForwardMessage DSL 2020-04-23 14:17:24 +08:00
Him188
454205a6af Add ContactMessage.time 2020-04-23 11:52:44 +08:00
Him188
200a140f38 Fix forward message displaying on TIM PC 2020-04-22 22:15:02 +08:00
Him188
1786c95e07 Support merged forward messages! 2020-04-22 22:09:53 +08:00
Him188
d9135cb8a3 Fix #248 2020-04-22 19:57:38 +08:00
Him188
3545482034 Fix #253 2020-04-22 18:39:10 +08:00
Him188
66f4620292 Add MessageSource.internalId, support OfflineMessageSource building 2020-04-22 18:35:30 +08:00
Him188
a63af80668 Deprecate QQ
Introduce `Friend` extending `User`
Introduce `User` acting as the superclass of `Friend` and `Member`

Add extensions `Member.asFriend`, etc.
Remove specialized `Contact.hashCode` and `Contact.equals`, inherit from `kotlin.Any`
Specify `toString` behavior in abstract `Contact` classes, instead of in implementation classes.

Add virtual member `Contact.sendMessage(String)`

Migrate the project from using `QQ` to `Friend`

Remove multiplatform Contact class structure, keep them common.

Remove extension `Long.at` in `GroupMessage`, `QQ.at` in `ContactMessage`.
Add `At.asMember()` in `GroupMessage`.

Make `calculateGroupUinByGroupCode`, `calculateGroupCodeByGroupUin` static on JVM.
2020-04-22 16:08:04 +08:00
Him188
41f1c12c8a Fix build 2020-04-22 11:27:14 +08:00
Him188
c425a809ba Fix #245 2020-04-21 14:53:24 +08:00
Him188
96610b30e3 Support CustomMessage 2020-04-20 21:26:16 +08:00
Him188
0689f84bf8 Cleanup 2020-04-20 17:03:41 +08:00
Him188
405696d9ac Use sequenceId as MessageSource.id, await sequenceId on Group.sendMessage 2020-04-18 16:56:18 +08:00
Him188
c695f2cddf Fix #240 2020-04-18 14:53:32 +08:00
Him188
7f347feedd Deprecate openChannel 2020-04-17 21:36:39 +08:00
Him188
fa211cab5c Fix retry when no Internet connection 2020-04-17 21:36:29 +08:00
Him188
db8cb84c99 Rearrange implementations for MessageSource, implement recall state check 2020-04-17 14:19:32 +08:00
Him188
47a288c614 Fix #220 2020-04-17 10:40:39 +08:00
Him188
6d57f44e91 Optimize useless getters, fix #236 2020-04-17 09:29:29 +08:00
Him188
870ed59d97 Inherit kotlinx-coroutines dependency from ktor 2020-04-16 10:39:27 +08:00
Him188
2b2edeacb1 Support operator in GroupNameChangeEvent, optimize logs, close #217 2020-04-15 19:55:10 +08:00
Him188
991f46fe64 Introduce ServiceMessage, fix #229, fix #224 2020-04-15 19:14:59 +08:00
Him188
e1004f12c9 Fix #220 2020-04-15 18:29:17 +08:00
Him188
c6059ab9ec Add tests 2020-04-15 18:18:59 +08:00
Him188
f79d3f9aa0 Fix AtomicResizeCacheList 2020-04-15 17:55:54 +08:00
Him188
e1c1c35d70 Introduce AtomicResizeCacheList to reduce duplication, fix #225 2020-04-15 17:51:32 +08:00
Him188
b30c380637 Fix #226 2020-04-15 17:01:04 +08:00
Him188
90ee9b441a Rework reconnection, fixes #228 2020-04-15 16:46:39 +08:00
Him188
f1ac53f115 Cleanup 2020-04-15 10:47:11 +08:00
Him188
e31805a835 Add comments, preparing for #220, #229 2020-04-15 08:48:23 +08:00
Him188
6eb4423bfc Remove debugging loggers 2020-04-15 08:19:49 +08:00
Him188
26c81cb93b Fix longMessage 2020-04-13 20:44:17 +08:00
Him188
bb6cac3261 Cleanup 2020-04-13 20:18:57 +08:00
Him188
51a95da5db Fix build 2020-04-13 18:56:25 +08:00
Him188
f5a8420231 Speed up image uploading 2020-04-13 11:13:27 +08:00
Him188
fe764d1fa8 Increase buffer size for uploading image 2020-04-13 10:50:58 +08:00
Him188
2b95bea8da Unified logMessageReceived 2020-04-13 10:27:22 +08:00
Him188
67084129cd Ignore ClearCountMsg 2020-04-13 10:18:31 +08:00
Him188
c433360d87 Add exception logger 2020-04-12 20:19:36 +08:00
Him188
a0c1675abc Add default values 2020-04-12 19:54:16 +08:00
Him188
da801d7b6d Support server changing, close #52 2020-04-12 19:17:27 +08:00
Him188
e6ef03f60d Fix ConfigPush 2020-04-12 17:24:17 +08:00
Him188
e23f91bac1 Estimate length of originalMessage 2020-04-12 01:42:37 +08:00
Him188
d97aa7bd94 Unified MessageSource.toJceData 2020-04-12 01:41:27 +08:00
Him188
0f91587ae7 Fix nameCard deserializing 2020-04-11 22:29:54 +08:00
Him188
fdef3bdbdd Merge remote-tracking branch 'origin/master' 2020-04-11 21:25:52 +08:00
ryoii
cd0b27e63d Merge remote-tracking branch 'origin/master'
# Conflicts:
#	mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/PbMessageSvc.kt
2020-04-11 21:24:35 +08:00
ryoii
28108a36ae Fix temp message and friend message recall 2020-04-11 21:22:18 +08:00