Skip to content

Commit 6fa82ca

Browse files
committed
feat:终端滚动+会话历史
1 parent 035c202 commit 6fa82ca

2 files changed

Lines changed: 194 additions & 87 deletions

File tree

napcat/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func (c *Client) readLoop() {
3434
return
3535
}
3636
var evt Event
37-
if json.Unmarshal(msg, &evt) == nil && evt.PostType == "message" {
37+
if json.Unmarshal(msg, &evt) == nil && (evt.PostType == "message" || evt.PostType == "message_sent") {
3838
c.Events <- evt
3939
}
4040
}

0 commit comments

Comments
 (0)