Skip to content

Commit

Permalink
Collapse associated outbox message when inbox message received in thread
Browse files Browse the repository at this point in the history
  • Loading branch information
luciajanikova committed Nov 27, 2024
1 parent c48317b commit ce3a166
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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

0 comments on commit ce3a166

Please sign in to comment.