Merge remote-tracking branch 'origin/tuoyun' into tuoyun

pull/218/head
skiffer-git 3 years ago
commit d2225dd841

@ -165,7 +165,7 @@ func (s *officeServer) SendMsg2Tag(_ context.Context, req *pbOffice.SendMsg2TagR
} }
groupUserIDList = append(groupUserIDList, userIDList...) 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 var userIDList []string
userIDList = append(userIDList, tagUserIDList...) userIDList = append(userIDList, tagUserIDList...)
userIDList = append(userIDList, groupUserIDList...) userIDList = append(userIDList, groupUserIDList...)

@ -93,6 +93,7 @@ func syncPeerUserConversation(conversation *pbUser.Conversation, operationID str
log.NewError(operationID, utils.GetSelfFuncName(), "SetConversation error", err.Error()) log.NewError(operationID, utils.GetSelfFuncName(), "SetConversation error", err.Error())
return err return err
} }
chat.SetConversationNotification(operationID, conversation.UserID) chat.SetConversationNotification(operationID, conversation.UserID)
} }
return nil return nil

@ -379,10 +379,10 @@ func GetConversations(OwnerUserID string, conversationIDs []string) ([]db.Conver
} }
func CreateConversationIfNotExist(conversation db.Conversation) error { func CreateConversationIfNotExist(conversation db.Conversation) error {
//dbConn, err := db.DB.MysqlDB.DefaultGormDB() dbConn, err := db.DB.MysqlDB.DefaultGormDB()
//if err != nil { if err != nil {
// return err return err
//} }
//err = dbConn.Model(&db.Conversation{}).Where().Find().Error err = dbConn.Model(&db.Conversation{}).Create(conversation).Error
return nil return nil
} }

Loading…
Cancel
Save