Ensure users status is set to offline when deactivated (#30900)

Этот коммит содержится в:
Daniel Espino García
2025-05-29 10:41:14 +02:00
коммит произвёл GitHub
родитель 79bf1c34db
Коммит 293f38ad0b
11 изменённых файлов: 141 добавлений и 16 удалений

Просмотреть файл

@@ -580,7 +580,7 @@ func (h *Hub) Start() {
// Only set to offline if there are no
// active connections in other nodes as well.
if clusterCnt == 0 {
h.platform.SetStatusOffline(userID, false)
h.platform.SetStatusOffline(userID, false, false)
}
})
continue
@@ -704,7 +704,7 @@ func (h *Hub) Start() {
case <-h.stop:
for webConn := range connIndex.All() {
webConn.Close()
h.platform.SetStatusOffline(webConn.UserId, false)
h.platform.SetStatusOffline(webConn.UserId, false, false)
}
h.explicitStop = true