fix: #9398, crash on post flag

This commit is contained in:
Barış Soner Uşaklı
2021-03-15 17:55:14 -04:00
parent 8d3ec23483
commit 90d64fe1df
3 changed files with 5 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ async function canGet(hook, callerUid, uid) {
}
Messaging.parse = async (message, fromuid, uid, roomId, isNew) => {
const parsed = await plugins.hooks.fire('filter:parse.raw', message);
const parsed = await plugins.hooks.fire('filter:parse.raw', String(message || ''));
let messageData = {
message: message,
parsed: parsed,