pointer: Remove pointer from GET /users/me.

This cleans up a bit of mess in the Zulip API.
This commit is contained in:
Tim Abbott
2020-06-18 00:18:29 -07:00
committed by Tim Abbott
parent b77da6b834
commit f8ea5f3769
5 changed files with 12 additions and 30 deletions

View File

@@ -505,7 +505,6 @@ def get_profile_backend(request: HttpRequest, user_profile: UserProfile) -> Http
result: Dict[str, Any] = raw_user_data[user_profile.id]
result['max_message_id'] = -1
result['pointer'] = user_profile.pointer
messages = Message.objects.filter(usermessage__user_profile=user_profile).order_by('-id')[:1]
if messages: