Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
Shamrock: fix #260
Browse files Browse the repository at this point in the history
Signed-off-by: 白池 <[email protected]>
  • Loading branch information
whitechi73 committed Feb 27, 2024
1 parent cb7bf00 commit 541422a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ internal object MsgSvc : BaseSvc() {
}
continuation.invokeOnCancellation {
continuation.resume(null)
} // 貌似不会被取消,写了也没什么鸟用啊?
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ internal object GetHistoryMsg : IActionHandler() {
msgType = MessageHelper.obtainDetailTypeByMsgType(msg.chatType),
msgId = msgHash,
msgSeq = msg.msgSeq,
realId = msg.msgSeq,
sender = MessageSender(
msg.senderUin, msg.sendNickName, "unknown", 0, msg.senderUid, msg.senderUid
),
Expand All @@ -92,6 +93,7 @@ internal object GetHistoryMsg : IActionHandler() {
msgType = MessageHelper.obtainDetailTypeByMsgType(msg.chatType),
msgId = MessageHelper.generateMsgIdHash(msg.chatType, msg.msgId),
msgSeq = msg.msgSeq,
realId = msg.msgSeq,
sender = MessageSender(
msg.senderUin, msg.sendNickName
.ifEmpty { msg.sendMemberName }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ internal object GetMsg: IActionHandler() {
msgType = MessageHelper.obtainDetailTypeByMsgType(msg.chatType),
msgId = msgHash,
msgSeq = msg.msgSeq,
realId = msg.msgSeq,
sender = MessageSender(
msg.senderUin, msg.sendNickName
.ifEmpty { msg.sendMemberName }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ internal data class MessageDetail(
@SerialName("message_type") val msgType: String,
@SerialName("message_id") val msgId: Int,
@SerialName("message_seq") val msgSeq: Long,
@SerialName("real_id") val realId: Long = msgSeq,
@SerialName("sender") val sender: MessageSender,
@SerialName("message") val message: List<Map<String, JsonElement>>,
@SerialName("group_id") val groupId: Long = 0,
Expand Down

0 comments on commit 541422a

Please sign in to comment.