Skip to content

Commit

Permalink
Merge pull request #516 from slovensko-digital/GO-153/collapse_sent_m…
Browse files Browse the repository at this point in the history
…essages

GO-153 Collapse associated outbox message when inbox message received in thread
  • Loading branch information
luciajanikova authored Nov 27, 2024
2 parents c48317b + c3adc53 commit 3029a29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/models/fs/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 3029a29

Please sign in to comment.