fix: fixed bug image preview im mobile chat session page

This commit is contained in:
RockYang
2024-02-29 15:41:45 +08:00
parent ca69341024
commit 02a9c422fe
4 changed files with 15 additions and 5 deletions

View File

@@ -131,6 +131,7 @@ func (h *ChatHandler) ChatHandle(c *gin.Context) {
c.Abort()
return
}
h.Init()
// 保存会话连接
h.App.ChatClients.Put(sessionId, client)

View File

@@ -393,9 +393,6 @@ func main() {
log.Fatal(err)
}
}),
fx.Invoke(func(h *chatimpl.ChatHandler) {
h.Init()
}),
// 注册生命周期回调函数
fx.Invoke(func(lifecycle fx.Lifecycle, lc *AppLifecycle) {
lifecycle.Append(fx.Hook{