Skip to content

Commit

Permalink
fix: add missing remove block
Browse files Browse the repository at this point in the history
  • Loading branch information
clementb49 committed Feb 16, 2025
1 parent ac20efa commit c7cb797
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions basilisk/gui/conversation_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -1409,3 +1409,12 @@ def save_conversation(self, file_path: str) -> bool:
wx.OK | wx.ICON_ERROR,
)
return False

def remove_message_block(self, message_block: MessageBlock):
"""Remove a message block from the conversation.
Args:
message_block: The message block to remove
"""
self.conversation.messages.remove(message_block)
self.refresh_messages()

0 comments on commit c7cb797

Please sign in to comment.