Skip to content
Snippets Groups Projects
Commit 8f23cb80 authored by ComeF2's avatar ComeF2
Browse files

Ajout fonctionnalité post_message

parent 965fd8bd
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -172,6 +172,8 @@ def post_message():
and 'email_recipient' in data):
email_sender = database_helper.tokenToEmail(data['token'])
if email_sender:
if(data['email_recipient'] == "null"):
data['email_recipient'] = email_sender
if database_helper.check_email_exists(data['email_recipient']):
posted = database_helper.postMessage(email_sender, data['email_recipient'], data['message'])
if posted:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment