reject user messages when offline (#1269)
This commit is contained in:
parent
fac06257ad
commit
44f406caf0
@ -80,6 +80,11 @@ func (s *ChatServer) userMessageSent(eventData chatClientEvent) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ignore if the stream in offline
|
||||||
|
if !getStatus().Online {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
event.User = user.GetUserByToken(eventData.client.accessToken)
|
event.User = user.GetUserByToken(eventData.client.accessToken)
|
||||||
|
|
||||||
// Guard against nil users
|
// Guard against nil users
|
||||||
|
Loading…
x
Reference in New Issue
Block a user