fix: Skip contact_last_seen_at in empty conversation payload (#4387)

* Fix undefined `last_seen_at` empty conversation

* chore: remove the comment

Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
Muhsin Keloth
2022-04-05 14:00:07 +05:30
committed by GitHub
parent 76f53d9a11
commit cd5646b4b9
2 changed files with 15 additions and 3 deletions

View File

@@ -12,5 +12,5 @@ json.payload do
end
end
json.meta do
json.contact_last_seen_at @conversation.contact_last_seen_at.to_i
json.contact_last_seen_at @conversation.contact_last_seen_at.to_i if @conversation.present?
end