From 78aa904e97daf14b28658b9d35102820197ab4b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 27 Jul 2023 14:26:31 -0400 Subject: [PATCH] gimme mid --- src/messaging/data.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/messaging/data.js b/src/messaging/data.js index b65f8737fb..38c2e7761a 100644 --- a/src/messaging/data.js +++ b/src/messaging/data.js @@ -143,6 +143,9 @@ async function modifyMessage(message, fields, mid) { if (message.hasOwnProperty('edited')) { message.editedISO = utils.toISOString(message.edited); } + if (!fields.length || fields.includes('mid')) { + message.mid = parseInt(mid, 10); + } } const payload = await plugins.hooks.fire('filter:messaging.getFields', {