Skip to content

Commit

Permalink
resolving syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
princekhunt committed Jun 16, 2024
1 parent 237e3c6 commit b5101c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chat/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def chat(request, username):

#messages = Messages.objects.filter(sender_name=id, receiver_name=friend.id) | Messages.objects.filter(sender_name=friend.id, receiver_name=id)
public_key = Keys.objects.get(user=friend).public_key # Get the friend's public key
public_key = base64.b64encode(public_key.encode('utf-8')).decode('utf-8'L encode the public key
public_key = base64.b64encode(public_key.encode('utf-8')).decode('utf-8')# encode the public key
public_key = urllib.parse.quote_plus(public_key) # URL encode the public key
friends = getFriendsList(id) # Get the friends list for the current user

Expand Down

0 comments on commit b5101c3

Please sign in to comment.