Skip to content

Commit

Permalink
fix js jumping message 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jpadilla1 committed Apr 30, 2014
1 parent 2a1ae8b commit 6f767a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/chats/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_context_data(self, **kwargs):
context['room'] = get_object_or_404(ChatRoom, slug=self.kwargs['slug'])
context['room_messages'] = Message.objects.filter(room=context['room'])
if context['room_messages'].count() > 0:
context['room_message_last'] = context['room_messages'].last().id-1
context['room_message_last'] = context['room_messages'].last().id - 1
users = User.objects.filter(
last_login__gt=self.request.user.last_logged_out,
is_active__exact=1, ).order_by('-last_login')
Expand Down

0 comments on commit 6f767a1

Please sign in to comment.