The iPhone app now handles unread counts properly.

(imported from commit 4afe4d082d9d575142087e12088a1d563e43096e)
This commit is contained in:
Tim Abbott 2013-12-03 11:58:52 -05:00
parent abded5f886
commit f765c88ac9
1 changed files with 4 additions and 5 deletions

View File

@ -852,11 +852,10 @@ def update_pointer_backend(request, user_profile,
user_profile.pointer = pointer
user_profile.save(update_fields=["pointer"])
if request.client.name.lower() in ['android', 'iphone']:
# TODO (leo)
# Until we handle the new read counts in the mobile apps natively,
# this is a shim that will mark as read any messages up until the
# pointer move
if request.client.name.lower() in ['android']:
# Until we handle the new read counts in the Android app
# natively, this is a shim that will mark as read any messages
# up until the pointer move
UserMessage.objects.filter(user_profile=user_profile,
message__id__gt=prev_pointer,
message__id__lte=pointer,