Ensure users status is set to offline when deactivated (#30900)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
79bf1c34db
Коммит
293f38ad0b
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user