Skip to content

Commit

Permalink
fix: update to correct msgListener.
Browse files Browse the repository at this point in the history
  • Loading branch information
mo3et committed Nov 14, 2024
1 parent bf4e655 commit 478f43e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/conversation_msg/conversation_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ func (c *Conversation) batchNewMessages(ctx context.Context, newMessagesList sdk
}

if len(needNotificationMsgList) != 0 {
c.batchMsgListener().OnRecvOfflineNewMessages(utils.StructToJsonString(needNotificationMsgList))
c.msgListener().OnRecvOfflineNewMessage(utils.StructToJsonString(needNotificationMsgList))
}
} else { // online
for _, w := range newMessagesList {
Expand All @@ -764,7 +764,7 @@ func (c *Conversation) batchNewMessages(ctx context.Context, newMessagesList sdk
}

if len(needNotificationMsgList) != 0 {
c.batchMsgListener().OnRecvNewMessages(utils.StructToJsonString(needNotificationMsgList))
c.msgListener().OnRecvOnlineOnlyMessage(utils.StructToJsonString(needNotificationMsgList))
}
}
}
Expand Down

0 comments on commit 478f43e

Please sign in to comment.