Fixed the loading messages from database issue
This commit is contained in:
parent
7039776008
commit
65c31c6050
5
main.js
5
main.js
|
@ -101,7 +101,10 @@ getrows_sqlite3("chats", function(data)
|
||||||
getrows_sqlite3("messages", function(data)
|
getrows_sqlite3("messages", function(data)
|
||||||
{
|
{
|
||||||
// Push all the messages to the chats
|
// 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.");
|
console.log("Server ready.");
|
||||||
|
|
Loading…
Reference in New Issue