code: func (r *Router) handleEventRejoinChannels(msg *config.Message) {
  	if msg.Event != config.EventRejoinChannels {
  		return
  	}
  	for _, gw := range r.Gateways {
  		for _, br := range gw.Bridges {
  			if msg.Account == br.Account {
  				br.Joined = make(map[string]bool)
  				if err := br.JoinChannels(); err != nil {
  					r.logger.Errorf("channel join failed for %s: %s", msg.Account, err)
  				}
  			}
  		}
  	}
  }
docs: // handleEventRejoinChannels handles rejoining of channels.