wechaty/puppet

A critical level bug was found, if I'm right

codermie opened this issue · 0 comments

@huan
微信图片_20240613182419
In my opinion

this.cache.roomMember.set(roomId, {
... cachedPayload,
memberId: payload,
})
Should be changed to
this.cache.roomMember.set(roomId, {
... cachedPayload,
[memberId] : payload,
})
This makes use of the cache and optimizes the query speed