Fixed the loading messages from database issue

This commit is contained in:
jsrobson10 2019-04-13 16:35:07 +10:00
parent 7039776008
commit 65c31c6050
1 changed files with 4 additions and 1 deletions

View File

@ -101,7 +101,10 @@ getrows_sqlite3("chats", function(data)
getrows_sqlite3("messages", function(data)
{
// Push all the messages to the chats
chats[data.channel].messages.push(data.message);
chats[data.channel].messages.push({
message: data.message,
from: data.from
});
});
console.log("Server ready.");