@defer.inlineCallbacks
    def is_visible(self, observed_user, observer_user):
        observer_rooms = yield self.store.get_rooms_for_user(observer_user.to_string())
        observed_rooms = yield self.store.get_rooms_for_user(observed_user.to_string())

        observer_room_ids = set(r.room_id for r in observer_rooms)
        observed_room_ids = set(r.room_id for r in observed_rooms)

        if observer_room_ids & observed_room_ids:
            defer.returnValue(True)

        accepted_observers = yield self.store.get_presence_list_observers_accepted(
            observed_user.to_string()
        )

        defer.returnValue(observer_user.to_string() in accepted_observers)
Registers a 'key sequence' to 'command' mapping with Vintageous.
dataset/ETHPy150Open matrix-org/synapse/synapse/handlers/presence.py/PresenceHandler.is_visible--crossover with--dataset/ETHPy150Open guillermooo/Vintageous/vi/keys.py/assign