diff --git a/app/models/fs/message.rb b/app/models/fs/message.rb index c82181e0..89b9bbf1 100644 --- a/app/models/fs/message.rb +++ b/app/models/fs/message.rb @@ -18,6 +18,8 @@ def self.create_inbox_message_with_thread!(raw_message, box:) MessageObject.mark_message_objects_externally_signed(message.objects) end + associated_outbox_message.update(collapsed: true) + EventBus.publish(:message_thread_created, message.thread) if message.thread.previously_new_record? EventBus.publish(:message_created, message) end @@ -147,7 +149,7 @@ def self.update_html_visualization(message) end def self.collapsed? - # TODO urcit podmienky: odoslana sprava s potvrdenkou by mohla byt collapsed + # TODO urcit podmienky: odoslana sprava s potvrdenkou by mala byt collapsed - zatial riesime pri stiahnuti prijatej spravy, ale ak by sme stahovali cely inbox, nemusi stacit false end end