story-kit: merge 352_bug_ambient_on_off_command_not_intercepted_by_bot_after_refactors
This commit is contained in:
@@ -678,7 +678,6 @@ pub async fn slash_command_receive(
|
||||
agents: &ctx.agents,
|
||||
ambient_rooms: &ctx.ambient_rooms,
|
||||
room_id: &payload.channel_id,
|
||||
is_addressed: true,
|
||||
};
|
||||
|
||||
let response_text = try_handle_command(&dispatch, &synthetic_message)
|
||||
@@ -711,8 +710,6 @@ async fn handle_incoming_message(
|
||||
agents: &ctx.agents,
|
||||
ambient_rooms: &ctx.ambient_rooms,
|
||||
room_id: channel,
|
||||
// Slack messages in configured channels are always "addressed" to the bot.
|
||||
is_addressed: true,
|
||||
};
|
||||
|
||||
if let Some(response) = try_handle_command(&dispatch, message) {
|
||||
@@ -1429,7 +1426,6 @@ mod tests {
|
||||
agents: &agents,
|
||||
ambient_rooms: &ambient_rooms,
|
||||
room_id: &room_id,
|
||||
is_addressed: true,
|
||||
};
|
||||
|
||||
let result = try_handle_command(&dispatch, &synthetic);
|
||||
@@ -1457,7 +1453,6 @@ mod tests {
|
||||
agents: &agents,
|
||||
ambient_rooms: &ambient_rooms,
|
||||
room_id: &room_id,
|
||||
is_addressed: true,
|
||||
};
|
||||
|
||||
let result = try_handle_command(&dispatch, &synthetic);
|
||||
|
||||
Reference in New Issue
Block a user