room_name = get_room_name(room_id)
channel_id = get_channel_for_room(room_id)
if not environ.env.db.is_room_ephemeral(room_id) or not is_owner(room_id, user_id):
return
owners = get_owners_for_room(room_id)
After Change
logger.info("checking whether to remove room %s or not" % room_id)
if not environ.env.db.is_room_ephemeral(room_id):
logger.info("room %s (%s) is not ephemeral, not considering removal" % (room_name, room_id))
return
owners = get_owners_for_room(room_id)
users_in_room = get_users_in_room(room_id)