mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
Use request._client to detect a mobile pointer update
(imported from commit d06606ded33bc598e1bdb4b33279ce92b098ed02)
This commit is contained in:
@@ -460,7 +460,7 @@ def update_pointer_backend(request, user_profile, updater,
|
||||
user_profile.last_pointer_updater = updater
|
||||
user_profile.save()
|
||||
|
||||
if updater.lower() in ['android', 'iphone']:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user