fix: empty mid on frontend for remote posts

This commit is contained in:
Julian Lam
2024-10-08 16:28:03 -04:00
parent 0a17a0b948
commit 8abfd951b2

View File

@@ -50,7 +50,7 @@ module.exports = function (Messaging) {
messages = messages
.map((msg, idx) => {
if (msg) {
msg.messageId = parseInt(mids[idx], 10);
msg.messageId = utils.isNumber(mids[idx]) ? parseInt(mids[idx], 10) : mids[idx];
msg.ip = undefined;
msg.isOwner = msg.fromuid === parseInt(uid, 10);
}