Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GO-153 Collapse associated outbox message when inbox message received in thread #516

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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