Skip to content

Commit

Permalink
Step 5.31: Add ownership to incomming messages in chat view
Browse files Browse the repository at this point in the history
  • Loading branch information
DAB0mB authored and Dotan Simha committed Nov 22, 2016
1 parent 3a636be commit 9d78750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/templates/chat.html
Expand Up @@ -6,7 +6,7 @@
<ion-content class="chat" delegate-handle="chatScroll">
<div class="message-list">
<div ng-repeat="message in chat.messages" class="message-wrapper">
<div class="message" ng-class-even="'message-mine'" ng-class-odd="'message-other'">
<div class="message" ng-class="message.userId === $root.currentUser._id ? 'message-mine' : 'message-other'">
<div class="message-text">{{ message.text }}</div>
<span class="message-timestamp">{{ message.timestamp | amDateFormat: 'HH:MM' }}</span>
</div>
Expand Down

0 comments on commit 9d78750

Please sign in to comment.