Use request._client to detect a mobile pointer update

(imported from commit d06606ded33bc598e1bdb4b33279ce92b098ed02)
This commit is contained in:
Leo Franchi
2013-03-13 16:13:56 -04:00
parent 9c45b96b21
commit 7c7822601f

View File

@@ -460,7 +460,7 @@ def update_pointer_backend(request, user_profile, updater,
user_profile.last_pointer_updater = updater user_profile.last_pointer_updater = updater
user_profile.save() user_profile.save()
if updater.lower() in ['android', 'iphone']: if request._client.name.lower() in ['android', 'iphone']:
# TODO (leo) # TODO (leo)
# Until we handle the new read counts in the mobile apps natively, # 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 # this is a shim that will mark as read any messages up until the