diff --git a/src/dispatch/plugins/dispatch_slack/case/messages.py b/src/dispatch/plugins/dispatch_slack/case/messages.py index 32eab6c4e775..9163f6d57644 100644 --- a/src/dispatch/plugins/dispatch_slack/case/messages.py +++ b/src/dispatch/plugins/dispatch_slack/case/messages.py @@ -192,9 +192,6 @@ def create_signal_messages(case_id: int, channel_id: str, db_session: Session) - ).json() signal_metadata_blocks = [ - Section( - text=f"*{first_instance_signal.name}* - {first_instance_signal.variant}", - ), Actions( elements=[ Button( @@ -214,7 +211,9 @@ def create_signal_messages(case_id: int, channel_id: str, db_session: Session) - ), ] ), - Section(text=f"Total instances in this case: *{num_of_instances}*\n"), + Section(text="*Alerts*"), + Divider(), + Section(text=f"{num_of_instances} alerts observed in this case."), Section(text="\n*Entities*"), Divider(), ] diff --git a/src/dispatch/plugins/dispatch_slack/plugin.py b/src/dispatch/plugins/dispatch_slack/plugin.py index fb016f5f52a8..867604b5f101 100644 --- a/src/dispatch/plugins/dispatch_slack/plugin.py +++ b/src/dispatch/plugins/dispatch_slack/plugin.py @@ -78,12 +78,6 @@ def create_threaded(self, case: Case, conversation_id: str, db_session: Session) client = create_slack_client(self.configuration) blocks = create_case_message(case=case, channel_id=conversation_id) response = send_message(client=client, conversation_id=conversation_id, blocks=blocks) - send_message( - client=client, - conversation_id=conversation_id, - text="All real-time case collaboration should be captured in this thread.", - ts=response["timestamp"], - ) if case.signal_instances: message = create_signal_messages( case_id=case.id, channel_id=conversation_id, db_session=db_session diff --git a/src/dispatch/plugins/dispatch_slack/service.py b/src/dispatch/plugins/dispatch_slack/service.py index 6de65c05c185..475b153d9400 100644 --- a/src/dispatch/plugins/dispatch_slack/service.py +++ b/src/dispatch/plugins/dispatch_slack/service.py @@ -247,7 +247,9 @@ def add_users_to_conversation_thread( add_users_to_conversation(client=client, conversation_id=conversation_id, user_ids=user_ids) blocks = Message( blocks=[ - Section(text="Looping in individuals to help resolve this case...", fields=users) + Section( + text="Adding the following individuals to help resolve this case:", fields=users + ) ] ).build()["blocks"] send_message(client=client, conversation_id=conversation_id, blocks=blocks, ts=thread_id)