Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed Feb 1, 2025
1 parent e034d62 commit b319d99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/conversation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ class Conversation < ApplicationRecord
foreign_key: %i[pubkey session],
dependent: :restrict_with_exception

validates :pubkey, :session,
presence: true

def latest_event
if latest_eid.blank?
nil
Expand Down

0 comments on commit b319d99

Please sign in to comment.