mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
tag
This commit is contained in:
parent
d0a65c7c68
commit
7e937d7d29
@ -165,7 +165,7 @@ func (s *officeServer) SendMsg2Tag(_ context.Context, req *pbOffice.SendMsg2TagR
|
||||
}
|
||||
groupUserIDList = append(groupUserIDList, userIDList...)
|
||||
}
|
||||
log.NewDebug(req.OperationID, utils.GetSelfFuncName(), groupUserIDList, req.GroupList)
|
||||
log.NewInfo(req.OperationID, utils.GetSelfFuncName(), groupUserIDList, req.GroupList)
|
||||
var userIDList []string
|
||||
userIDList = append(userIDList, tagUserIDList...)
|
||||
userIDList = append(userIDList, groupUserIDList...)
|
||||
|
@ -93,6 +93,7 @@ func syncPeerUserConversation(conversation *pbUser.Conversation, operationID str
|
||||
log.NewError(operationID, utils.GetSelfFuncName(), "SetConversation error", err.Error())
|
||||
return err
|
||||
}
|
||||
|
||||
chat.SetConversationNotification(operationID, conversation.UserID)
|
||||
}
|
||||
return nil
|
||||
|
@ -379,10 +379,10 @@ func GetConversations(OwnerUserID string, conversationIDs []string) ([]db.Conver
|
||||
}
|
||||
|
||||
func CreateConversationIfNotExist(conversation db.Conversation) error {
|
||||
//dbConn, err := db.DB.MysqlDB.DefaultGormDB()
|
||||
//if err != nil {
|
||||
// return err
|
||||
//}
|
||||
//err = dbConn.Model(&db.Conversation{}).Where().Find().Error
|
||||
dbConn, err := db.DB.MysqlDB.DefaultGormDB()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = dbConn.Model(&db.Conversation{}).Create(conversation).Error
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user