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