Fixed chat
It now has a userID again, displays which user you are chatting withhover over user changes different background
This commit is contained in:
11
website/public/API/loadMessages.php
Normal file
11
website/public/API/loadMessages.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
include_once("../../queries/private_message.php");
|
||||
|
||||
if (isset($_POST["lastID"]) && $_POST["lastID"] != "") {
|
||||
|
||||
echo getNewChatMessages($_POST["lastID"], $_POST["destination"]);
|
||||
|
||||
} else {
|
||||
echo getOldChatMessages($_POST["destination"]);
|
||||
}
|
||||
Reference in New Issue
Block a user