server: 去除msg_type not null限制
This commit is contained in:
@@ -51,7 +51,7 @@ async function initDB(dbFile) {
|
|||||||
`CREATE TABLE IF NOT EXISTS msg (
|
`CREATE TABLE IF NOT EXISTS msg (
|
||||||
msg_id TEXT NOT NULL,
|
msg_id TEXT NOT NULL,
|
||||||
create_time INTEGER NOT NULL,
|
create_time INTEGER NOT NULL,
|
||||||
msg_type INTEGER NOT NULL,
|
msg_type INTEGER,
|
||||||
composed_type TEXT NOT NULL,
|
composed_type TEXT NOT NULL,
|
||||||
content TEXT,
|
content TEXT,
|
||||||
from_name TEXT,
|
from_name TEXT,
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ async function sendMessage(_, { type, target, data, filename }) {
|
|||||||
messageID: composedID,
|
messageID: composedID,
|
||||||
createTimestamp: timestamp,
|
createTimestamp: timestamp,
|
||||||
type,
|
type,
|
||||||
messageType: null,
|
messageType: 0,
|
||||||
fromName: bot.user.NickName,
|
fromName: bot.user.NickName,
|
||||||
fromNickName: bot.user.NickName,
|
fromNickName: bot.user.NickName,
|
||||||
toName: getDisplayName(targetContact),
|
toName: getDisplayName(targetContact),
|
||||||
|
|||||||
Reference in New Issue
Block a user