修正推送数据中unread message count不准确的问题

This commit is contained in:
imhao183
2020-08-01 09:25:24 +08:00
parent 405ad6c121
commit 1f5f7eb572
@@ -254,7 +254,7 @@ public class MessagesPublisher {
}
if (!StringUtil.isNullOrEmpty(pushContent) || messageContentType == 400) {
if (!isSlient) {
if (!isSlient && (persistFlag & 0x02) > 0) {
targetSession.setUnReceivedMsgs(targetSession.getUnReceivedMsgs() + 1);
}
}