opt: update the main chat compnent after updating the user profile

This commit is contained in:
RockYang
2023-06-15 11:29:16 +08:00
parent 1e84332119
commit 088fd14c03
3 changed files with 18 additions and 12 deletions

View File

@@ -69,7 +69,7 @@ func (h *ChatHandler) ChatHandle(c *gin.Context) {
session.ChatId = chatId
session.Model = chatModel
logger.Infof("New websocket connected, IP: %s, UserId: %s", c.Request.RemoteAddr, session.Username)
logger.Infof("New websocket connected, IP: %s, Username: %s", c.Request.RemoteAddr, session.Username)
client := core.NewWsClient(ws)
var chatRole model.ChatRole
res = h.db.First(&chatRole, roleId)