-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
json.extract! conversation, :id | ||
|
||
json.other_user_picture_url conversation.other_user(current_user).avatar_url | ||
json.other_user_picture_url conversation.other_user(current_user).one_avatar_url | ||
json.other_user_first_name conversation.other_user(current_user).first_name | ||
json.last_message_created_at conversation.last_message.created_at.strftime("%b %e") | ||
json.last_message_content conversation.last_message.content | ||
json.last_message_read_at conversation.last_message.read_at | ||
json.is_last_message_writer_current_user conversation.last_message.user == current_user | ||
json.user conversation.other_user(current_user) | ||
json.user conversation.other_user(current_user) |