|
|
@ -14,15 +14,15 @@ func (c *MsgTool) ConvertTools() {
|
|
|
|
log.ZError(ctx, "get all conversation ids failed", err)
|
|
|
|
log.ZError(ctx, "get all conversation ids failed", err)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for _, conversationID := range conversationIDs {
|
|
|
|
// for _, conversationID := range conversationIDs {
|
|
|
|
conversationIDs = append(conversationIDs, msgprocessor.GetNotificationConversationIDByConversationID(conversationID))
|
|
|
|
// conversationIDs = append(conversationIDs, msgprocessor.GetNotificationConversationIDByConversationID(conversationID))
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
userIDs, err := c.userDatabase.GetAllUserID(ctx, 0, 0)
|
|
|
|
userIDs, err := c.userDatabase.GetAllUserID(ctx, 0, 0)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
log.ZError(ctx, "get all user ids failed", err)
|
|
|
|
log.ZError(ctx, "get all user ids failed", err)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
log.ZDebug(ctx, "all userIDs", "userIDs", userIDs)
|
|
|
|
log.ZDebug(ctx, "all userIDs", "len userIDs", len(userIDs))
|
|
|
|
for _, userID := range userIDs {
|
|
|
|
for _, userID := range userIDs {
|
|
|
|
conversationIDs = append(conversationIDs, msgprocessor.GetConversationIDBySessionType(constant.SingleChatType, userID, userID))
|
|
|
|
conversationIDs = append(conversationIDs, msgprocessor.GetConversationIDBySessionType(constant.SingleChatType, userID, userID))
|
|
|
|
conversationIDs = append(conversationIDs, msgprocessor.GetNotificationConversationID(constant.SingleChatType, userID, userID))
|
|
|
|
conversationIDs = append(conversationIDs, msgprocessor.GetNotificationConversationID(constant.SingleChatType, userID, userID))
|
|
|
|