'Deletes entries in the users_who_share_rooms table. The first
user should be a local user.
Args:
room_id (str)
share_private (bool): Is the room private
user_id_tuples([(str, str)]): iterable of 2-tuple of user IDs.'

def remove_user_who_share_room(self, user_id, other_user_id):

    def _remove_user_who_share_room_txn(txn):
        self._simple_delete_txn(txn, table='users_who_share_rooms', keyvalues={'user_id': user_id, 'other_user_id': other_user_id})
        txn.call_after(self.get_users_who_share_room_from_dir.invalidate, (user_id,))
        txn.call_after(self.get_if_users_share_a_room.invalidate, (user_id, other_user_id))
    return self.runInteraction('remove_user_who_share_room', _remove_user_who_share_room_txn)
