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