'Args:
hs (synapse.server.HomeServer): server'

def __init__(self, hs):

    self.store = hs.get_datastore()
    self.notifier = hs.get_notifier()
    self.is_mine_id = hs.is_mine_id
    self.federation = hs.get_federation_sender()
    hs.get_replication_layer().register_edu_handler('m.direct_to_device', self.on_direct_to_device_edu)
