Will be available in 1.18.4
https://github.com/NodeBB/NodeBB/issues/9855
Where is the chat messages stored?
-
They are stored in rooms, and each user has their own list of message ids. So if you have the
roomId
and auid
then you can get the list of message ids from the sorted set'uid:' + uid + ':chat:room:' + roomId + ':mids'
This sorted set contains message ids, to get the actual message data you need to load them frommessage:<mid>
.