Skip to content

Commit

Permalink
Merge pull request #57 from dimagi/ce/incoming-message-handling
Browse files Browse the repository at this point in the history
its a variable
  • Loading branch information
calellowitz authored Nov 22, 2024
2 parents 1c14870 + b98eba5 commit 87f5831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion messaging/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def post(self, request, *args, **kwargs):
data = request.data
content = data["content"]
for field in ("nonce", "tag", "ciphertext"):
if not content["field"]:
if not content[field]:
return JsonResponse({"errors": "invalid message content"}, status=status.HTTP_400_BAD_REQUEST)
message_data = {
"channel_id": data["channel"],
Expand Down

0 comments on commit 87f5831

Please sign in to comment.