remove .DS_Store
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -6,7 +6,7 @@
|
||||
# By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2024/08/04 13:44:11 by edbernar #+# #+# #
|
||||
# Updated: 2024/08/26 00:37:41 by edbernar ### ########.fr #
|
||||
# Updated: 2024/08/27 17:09:39 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
@ -27,6 +27,8 @@ def sendPrivateMessage(socket, content):
|
||||
socket.sendError("User not found", 9008)
|
||||
return;
|
||||
user = User.objects.filter(id=socket.scope["session"]["id"])
|
||||
if(int(content["to"]) == user[0].id):
|
||||
socket.sendError("Invalid message sent", 9009)
|
||||
new_msg = Message.objects.create(sender=user[0], to=dest[0], content=content["content"])
|
||||
new_msg.save()
|
||||
jsonVar = {"type": "new_private_message", "content": {
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user