mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 02:20:14 +08:00
Http api rename private method addCache
This commit is contained in:
parent
bebcf1aacb
commit
43e0c3b414
@ -37,14 +37,15 @@ class MessageQueue : ConcurrentLinkedDeque<BotEvent>() {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: 等FriendMessage支持quote
|
||||
if (event is GroupMessage) {
|
||||
addCache(event)
|
||||
addQuoteCache(event)
|
||||
}
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
private fun addCache(msg: GroupMessage) {
|
||||
private fun addQuoteCache(msg: GroupMessage) {
|
||||
quoteCache[msg.message[MessageSource].messageUid.toLong()] = msg
|
||||
if (quoteCache.size > quoteCacheSize) {
|
||||
quoteCache.remove(quoteCache.firstKey())
|
||||
|
Loading…
Reference in New Issue
Block a user