mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 20:56:51 +00:00
GODT-1770: handle UserBadEvent in CLI and gRPC.
This commit is contained in:
@ -313,11 +313,14 @@ func (s *Service) watchEvents() {
|
||||
// This is the event the GUI cares about.
|
||||
_ = s.SendEvent(NewUserChangedEvent(event.UserID))
|
||||
|
||||
// The GUI doesn't care about this event... not sure why we still emit it.
|
||||
// The GUI doesn't care about this event... not sure why we still emit it. GODT-2128.
|
||||
if user, err := s.bridge.GetUserInfo(event.UserID); err == nil {
|
||||
_ = s.SendEvent(NewUserDisconnectedEvent(user.Username))
|
||||
}
|
||||
|
||||
case events.UserBadEvent:
|
||||
_ = s.SendEvent(NewUserBadEvent(event.UserID, event.Error.Error()))
|
||||
|
||||
case events.UpdateLatest:
|
||||
safe.RLock(func() {
|
||||
s.latest = event.Version
|
||||
|
||||
Reference in New Issue
Block a user