Open lovemianhuatang opened 1 week ago
This is an expected behavior when you set maxCount: 1
.
Consider the performance of implementation between your expected behavior and the current behavior when querying messages in databases (for our cases, MongoDB), and the performance of Restrict message results to top N messages per group
is unacceptable, especially since it's a frequently used method.
btw, we will support counting unread messages in another way, you can read https://github.com/turms-im/turms/issues/575 for details.
好的,请问 #575 是在进行中吗?进展如何
好的,请问 #575 是在进行中吗?进展如何
I will start developing and publish the feature in 2024/08 or 2024/09 when I am available. I will @ you once the new feature is published, and you can use queryMessagesWithTotal
currently.
开启 turms.service.message.use-conversation-id=true 当前登录用户Id=10,我想获取与用户['11', '12', '13']每个会话的未读消息数量。但现在只返回了第一条消息的记录;
实际响应:
预期响应: