removed unnecesary lines

This commit is contained in:
jeffser 2024-07-04 11:43:07 -06:00
parent c75556346a
commit 3795de4ae9

View File

@ -904,10 +904,8 @@ Generate a title following these rules:
GLib.idle_add(self.bot_message.insert_markup, self.bot_message.get_end_iter(), text, len(text)) GLib.idle_add(self.bot_message.insert_markup, self.bot_message.get_end_iter(), text, len(text))
self.save_history() self.save_history()
GLib.idle_add(self.bot_message_button_container.set_visible, True) GLib.idle_add(self.bot_message_button_container.set_visible, True)
#Notification #Notification
first_paragraph = self.bot_message.get_text(self.bot_message.get_start_iter(), self.bot_message.get_end_iter(), False).split("\n")[0] first_paragraph = self.bot_message.get_text(self.bot_message.get_start_iter(), self.bot_message.get_end_iter(), False).split("\n")[0]
print(self.chats["selected_chat"] + "\n\n" + first_paragraph[:100] + (first_paragraph[100:] and '...'))
GLib.idle_add(self.show_notification, self.chats["selected_chat"], first_paragraph[:100] + (first_paragraph[100:] and '...'), Gio.ThemedIcon.new("chat-message-new-symbolic")) GLib.idle_add(self.show_notification, self.chats["selected_chat"], first_paragraph[:100] + (first_paragraph[100:] and '...'), Gio.ThemedIcon.new("chat-message-new-symbolic"))
else: else:
if id not in self.chats["chats"][self.chats["selected_chat"]]["messages"]: if id not in self.chats["chats"][self.chats["selected_chat"]]["messages"]: