1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-24 20:43:33 +08:00

[core] fix group id

This commit is contained in:
StageGuard 2023-09-08 09:57:49 +08:00
parent 3937bca234
commit f7ecc8a032
No known key found for this signature in database
GPG Key ID: F6FF8760A883492B
2 changed files with 3 additions and 3 deletions
mirai-core/src/commonMain/kotlin
contact/roaming
network/notice/group

View File

@ -75,7 +75,7 @@ internal class RoamingMessagesImplGroup(
SimpleRefineContext(
RefineContextKey.MessageSourceKind to MessageSourceKind.GROUP,
RefineContextKey.FromId to it.msgHead.fromUin,
RefineContextKey.GroupIdOrZero to contact.uin,
RefineContextKey.GroupIdOrZero to contact.id,
)
)
}

View File

@ -169,7 +169,7 @@ internal class GroupMessageProcessor(
mutableMapOf(
RefineContextKey.MessageSourceKind to MessageSourceKind.GROUP,
RefineContextKey.FromId to sender.uin,
RefineContextKey.GroupIdOrZero to group.uin,
RefineContextKey.GroupIdOrZero to group.id,
)
)
),
@ -195,7 +195,7 @@ internal class GroupMessageProcessor(
mutableMapOf(
RefineContextKey.MessageSourceKind to MessageSourceKind.GROUP,
RefineContextKey.FromId to sender.uin,
RefineContextKey.GroupIdOrZero to group.uin,
RefineContextKey.GroupIdOrZero to group.id,
)
)
),