Skip to content

Commit

Permalink
fix #1815
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrs4s committed Jan 10, 2023
1 parent 960f7ab commit 7d5f1d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coolq/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ func (bot *CQBot) tempMessageEvent(c *client.QQClient, e *client.TempMessageEven
PrimaryID: e.Session.Sender,
}
cqm := toStringMessage(m.Elements, source)
bot.tempSessionCache.Store(m.Sender.Uin, e.Session)
if base.AllowTempSession {
bot.tempSessionCache.Store(m.Sender.Uin, e.Session)
}

id := m.Id
// todo(Mrs4s)
// if bot.db != nil { // nolint
Expand Down

0 comments on commit 7d5f1d6

Please sign in to comment.