Permalink
Browse files

posted messages now get the current_user class

  • Loading branch information...
MichaelEvans committed May 11, 2012
1 parent 8cee08f commit 144aee57b2f6214ec1a15b617ad4fe1e67c13658
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/assets/javascripts/backbone/views/show_activity.js.coffee
@@ -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

0 comments on commit 144aee5

Please sign in to comment.