Fixed Chat!

This commit is contained in:
Lars van Hijfte
2017-01-18 15:37:49 +01:00
parent cd954a8c4c
commit 7469a10f13
4 changed files with 4 additions and 32 deletions

View File

@@ -34,7 +34,7 @@ function sendMessage() {
function addMessages(messages) {
for(i in messages) {
if (messages[i].origin == 2) {
if (messages[i].destination == $(".destinationID").val()) {
type = "chat-message-self";
} else {
type = "chat-message-other";

View File

@@ -16,10 +16,6 @@
overflow-y: auto;
}
.chat-left .friend-item {
cursor: pointer;
}
.chat-right {
width: calc(100% - 256px - 40px);
height: calc(100% - 80px);