Skip to content

Commit

Permalink
posted messages now get the current_user class
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelEvans committed May 11, 2012
1 parent 8cee08f commit 144aee5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Kandan.Views.ShowActivity extends Backbone.View
@compiledTemplate = Kandan.Helpers.Activities.buildFromMessageTemplate activity

$(@el).data("activity-id", activity.id)
if activity.action == "message" && activity.user_id == Kandan.Helpers.Users.currentUser().id
if activity.action == "message" && activity.user.id == Kandan.Helpers.Users.currentUser().id
$(@el).addClass("current_user")

if activity.id == undefined
Expand Down

0 comments on commit 144aee5

Please sign in to comment.