mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 11:52:10 +08:00
fix: notification has counted unread counts bug fix.
This commit is contained in:
parent
3388513b0d
commit
675fe8347c
@ -147,20 +147,15 @@ func (och *OnlineHistoryRedisConsumerHandler) categorizeMessageLists(totalMsgs [
|
|||||||
if v.message.Options != nil {
|
if v.message.Options != nil {
|
||||||
msg.Options = msgprocessor.NewMsgOptions()
|
msg.Options = msgprocessor.NewMsgOptions()
|
||||||
}
|
}
|
||||||
if options.IsOfflinePush() {
|
msg.Options = msgprocessor.WithOptions(msg.Options,
|
||||||
|
msgprocessor.WithOfflinePush(options.IsOfflinePush()),
|
||||||
|
msgprocessor.WithUnreadCount(options.IsUnreadCount()),
|
||||||
|
)
|
||||||
v.message.Options = msgprocessor.WithOptions(
|
v.message.Options = msgprocessor.WithOptions(
|
||||||
v.message.Options,
|
v.message.Options,
|
||||||
msgprocessor.WithOfflinePush(false),
|
msgprocessor.WithOfflinePush(false),
|
||||||
)
|
|
||||||
msg.Options = msgprocessor.WithOptions(msg.Options, msgprocessor.WithOfflinePush(true))
|
|
||||||
}
|
|
||||||
if options.IsUnreadCount() {
|
|
||||||
v.message.Options = msgprocessor.WithOptions(
|
|
||||||
v.message.Options,
|
|
||||||
msgprocessor.WithUnreadCount(false),
|
msgprocessor.WithUnreadCount(false),
|
||||||
)
|
)
|
||||||
msg.Options = msgprocessor.WithOptions(msg.Options, msgprocessor.WithUnreadCount(true))
|
|
||||||
}
|
|
||||||
ctxMsg := &ContextMsg{
|
ctxMsg := &ContextMsg{
|
||||||
message: msg,
|
message: msg,
|
||||||
ctx: v.ctx,
|
ctx: v.ctx,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user